Changes between Initial Version and Version 1 of Ticket #4441, comment 10
- Timestamp:
- Jul 20, 2017, 2:29:19 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4441, comment 10
initial v1 1 1 I know this issue hasn't been touched in 5 years, but I found a decent solution - 2 2 This solution builds on Sam's original, but allows drag select to work in any blank canvas area that aren't scrollbars. It works by detecting if the point of the click that is beyond the view area. 3 3 4 {{{#!js 4 5 $("#selectable").mousedown((event : JQueryEventObject) : void => { 5 6 if (event.offsetX >= event.target.clientWidth | | event.offsetY >= event.target.clientHeight) { … … 7 8 } 8 9 }); 10 }}}