You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there's a pending raf, you should not request another one.
Also, when we call stop or destroy, the pending raf should be canceled with window.cancelAnimationFrame().
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a new version? :D
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satazor yes, I just wanted to give people some time to test it before releasing a new version :)
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I will be testing it out and report any bug
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If found a bug when scrolling with the draggable. It behaves strangely. Reverting back solved it.
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a minor suggestion regarding raf.
https://github.com/jamesflorentino/nanoScrollerJS/blob/master/bin/javascripts/jquery.nanoscroller.js#L470
If there's a pending raf, you should not request another one.
Also, when we call
stop
ordestroy
, the pending raf should be canceled withwindow.cancelAnimationFrame()
.7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll make those changes.
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satazor Could you open a bug report for this?
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satazor I did some fixes based on your suggestions and fixed that dragging bug. Could take the latest code and test it out?
7432db5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created #196, which describes the bug.