Improved clickDragger behavior.
This commit is contained in:
parent
4c54c270d2
commit
de7dab5cab
|
|
@ -518,6 +518,12 @@ class canopyUXUtils{
|
|||
|
||||
drag(event){
|
||||
if(this.dragLock && this.enabled){
|
||||
//If no buttons are being held down
|
||||
if(event.buttons == 0){
|
||||
//end the drag
|
||||
this.endDrag();
|
||||
}
|
||||
|
||||
if(this.leftHandle){
|
||||
//get difference between mouse and right edge of element
|
||||
var difference = this.element.getBoundingClientRect().right - event.clientX;
|
||||
|
|
|
|||
Loading…
Reference in a new issue