Closed vijay-vanecha closed 10 years ago
I'm not sure what you mean. Please describe it in more detail.
I mean when i click on scroll thumb and move mouse outside of scroll bar area, all text and content on page get selected.
1 is fine. That's who native scrollbar behaves. 2 is different from native scrollbars which only select content inside the scrolled container and scroll it if you move the mouse outside the viewport. I'll think how to implement that.
Thanks for help,
I found that this bug is reproduced only on Firefox. I am attaching image for more clarification. When i debugging i found that 'not-selectable' class and 'unselectable' attribute is already added but still all elements of page is selectable.
To fix the select issue change.
startMouseMoveScrolling:function (event) {
...
},
to:
startMouseMoveScrolling:function (event) {
...
event.preventDefault();
},
Additionally, .not_selectable and the attribute unselectable="on" should really be set on body not html. You can fix this in the same function, as well as in stopMouseMoveScrolling.
It's working now. Thanks a lot clphillips & Maciej Zubala for your support.
'not-selectable' class and attribute 'unselectable' is added but still other html elements selected when mouse outside