Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

[FixBug] Pages navigation arrows show slowly#212

Closed
zeroooing wants to merge 2 commits into
intel:masterfrom
zeroooing:review
Closed

[FixBug] Pages navigation arrows show slowly#212
zeroooing wants to merge 2 commits into
intel:masterfrom
zeroooing:review

Conversation

@zeroooing

Copy link
Copy Markdown
Contributor

No description provided.

@zhizhangchen

Copy link
Copy Markdown
Contributor

Very good patch! Please revise the commit message a little to something like:
[Page View] Fix bug: Quick multiple arrow clicks slows down scrolling

@zeroooing

Copy link
Copy Markdown
Contributor Author

Commit message revised

Comment thread src/js/views/page.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also use $('.pageIcon', box) and $('#pages', box) to find elements?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need a second filter . The jQuery function outerWidth() will "Get the current computed width for the first element in the set of matched elements". And all the pageIcons have the same width.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. But to be safe, please use the second filter. There's possibility that the scroller doesn't have a child in other page view.

@grgustaf

Copy link
Copy Markdown
Contributor

Great improvements, thank you very much. Merged.

@grgustaf grgustaf closed this Aug 20, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants