Prevent dragging if the mouse is on a scroll bar. #2

Closed
aaronwaldon wants to merge 1 commit from patch-1 into master
aaronwaldon commented 2013-04-15 03:17:23 +02:00 (Migrated from github.com)
No description provided.
karolyi commented 2013-05-06 11:03:42 +02:00 (Migrated from github.com)

unfortunately this doesn't work

unfortunately this doesn't work
andersRetteras commented 2013-09-12 11:21:35 +02:00 (Migrated from github.com)

I added this simple IF-statement to prevent selectable behaviour on scrollbars:
(...)
_mouseStart: function (event) {
var t = event.target;
if (event.pageX > t.clientWidth + t.offsetLeft){
return false;
}
(...)

I added this simple IF-statement to prevent selectable behaviour on scrollbars: (...) _mouseStart: function (event) { var t = event.target; if (event.pageX > t.clientWidth + t.offsetLeft){ return false; } (...)
karolyi commented 2014-04-02 03:23:46 +02:00 (Migrated from github.com)

A good call here, it has been upgraded and added to the code. Thank you :)

A good call here, it has been upgraded and added to the code. Thank you :)

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: karolyi/ui-selectableScroll#2
No description provided.