Skip to content

improve ribbon performance(touch device)#1641

Merged
ivan-nginx merged 1 commit intoiissnan:masterfrom
dolphinlin:ribbon-fix
Apr 30, 2017
Merged

improve ribbon performance(touch device)#1641
ivan-nginx merged 1 commit intoiissnan:masterfrom
dolphinlin:ribbon-fix

Conversation

@dolphinlin
Copy link
Copy Markdown
Contributor

touch device process ->
touchstart -> touchmove -> touchend

so add some judgment to avoid changing in every touch screen

targetA = judgment
touchstart => targetA = true
touchmove => if the touch have move, it ain't click screen, so it ain't to change ribbon. targetA = true | false
touchend => if targetA = true will change ribbon, on the contrary not to do.

@ivan-nginx
Copy link
Copy Markdown
Collaborator

Thanks!

@ivan-nginx ivan-nginx merged commit 51b708a into iissnan:master Apr 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants