freealise commited on
Commit
36e0e10
1 Parent(s): f729a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -477,12 +477,6 @@ with gr.Blocks(css=css) as demo:
477
  document.getElementById(\"select_cursor\").style.left = 0;
478
  document.getElementById(\"select_cursor\").style.top = 0;
479
  }
480
- document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].onpointerleave = function(e) {
481
- document.getElementById(\"mouse\").getElementsByTagName(\"textarea\")[0].value = \"[]\";
482
-
483
- document.getElementById(\"select_cursor\").style.left = 0;
484
- document.getElementById(\"select_cursor\").style.top = 0;
485
- }
486
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].onpointerdown = function(e) {
487
  document.getElementById(\"select_cursor\").style.borderColor = \"#808080\";
488
  }
 
477
  document.getElementById(\"select_cursor\").style.left = 0;
478
  document.getElementById(\"select_cursor\").style.top = 0;
479
  }
 
 
 
 
 
 
480
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].onpointerdown = function(e) {
481
  document.getElementById(\"select_cursor\").style.borderColor = \"#808080\";
482
  }