Autoscroll now ignores scrolls from chat resize
This commit is contained in:
parent
7badaa927c
commit
e2e6d975fb
2 changed files with 38 additions and 9 deletions
|
|
@ -514,6 +514,9 @@ class canopyUXUtils{
|
|||
//Keep user from selecting text or changing cursor as we drag
|
||||
window.document.body.style.userSelect = "none";
|
||||
window.document.body.style.cursor = "ew-resize";
|
||||
|
||||
//Dispatch click drag start event through handle
|
||||
this.handle.dispatchEvent(new CustomEvent("clickdragstart"));
|
||||
}
|
||||
|
||||
endDrag(event){
|
||||
|
|
@ -525,6 +528,9 @@ class canopyUXUtils{
|
|||
//Return cursor to normal, and allow user to select text again
|
||||
window.document.body.style.userSelect = "auto";
|
||||
window.document.body.style.cursor = "auto";
|
||||
|
||||
//Dispatch click drag end event through handle
|
||||
this.handle.dispatchEvent(new CustomEvent("clickdragend"));
|
||||
}
|
||||
|
||||
drag(event){
|
||||
|
|
@ -564,6 +570,9 @@ class canopyUXUtils{
|
|||
this.fixCutoff(false, pageBreak);
|
||||
}
|
||||
}
|
||||
|
||||
//Dispatch click drag event through handle
|
||||
this.handle.dispatchEvent(new CustomEvent("clickdrag"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue