Changes between Initial Version and Version 1 of Ticket #13964, comment 5


Ignore:
Timestamp:
Mar 23, 2012, 7:50:16 PM (9 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13964, comment 5

    initial v1  
    1 Something like this may work too, although it needs to be adjusted for RTL systems where the scrollbar is on the left:
     1Something like this in the mousedown handler may work too, although it needs to be adjusted for RTL systems where the scrollbar is on the left:
    22
    33{{{#!js
    4 if (evt.offsetX && evt.offsetX > node.clientWidth && node.clientWidth > 0) return;
     4if (evt.offsetX > node.clientWidth) return;
    55}}}
     6
     7I guess offsetX could be relative to a nested node rather that the node with the scrollbar, so might need to use clientX/clientY instead (and subtract the position of the node).