Changes between Initial Version and Version 1 of Ticket #4441, comment 10


Ignore:
Timestamp:
Jul 20, 2017, 2:29:19 PM (4 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4441, comment 10

    initial v1  
    11I know this issue hasn't been touched in 5 years, but I found a decent solution -
    22This 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
    45        $("#selectable").mousedown((event : JQueryEventObject) : void => {
    56            if (event.offsetX >= event.target.clientWidth | | event.offsetY >= event.target.clientHeight) {
     
    78            }
    89        });
     10}}}