Basic frontend cleanup.
This commit is contained in:
parent
be09c2457e
commit
d0184c5b6b
5 changed files with 42 additions and 27 deletions
|
|
@ -54,6 +54,10 @@ class canopyUXUtils{
|
|||
startDrag(event){
|
||||
//we are now dragging
|
||||
this.dragLock = true;
|
||||
|
||||
//Keep user from selecting text or changing cursor as we drag
|
||||
window.document.body.style.userSelect = "none";
|
||||
window.document.body.style.cursor = "ew-resize";
|
||||
}
|
||||
|
||||
endDrag(event){
|
||||
|
|
@ -67,6 +71,10 @@ class canopyUXUtils{
|
|||
//if this is true, it no longer needs to be, though it *should* be reset by the drag function by the time it matters anywho :P
|
||||
this.fixWidth = false;
|
||||
}
|
||||
|
||||
//Return cursor to normal, and allow user to select text again
|
||||
window.document.body.style.userSelect = "auto";
|
||||
window.document.body.style.cursor = "auto";
|
||||
}
|
||||
|
||||
drag(event){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue