mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-21 21:29:11 +00:00
allow drag by setting pointer-events on/off
This commit is contained in:
parent
b88bd781a2
commit
9e9655c1e7
@ -229,6 +229,7 @@ div.emuoverlay {
|
||||
}
|
||||
div.emuscope {
|
||||
background-color: #333;
|
||||
pointer-events:auto;
|
||||
}
|
||||
div.emuspacer {
|
||||
width:0;
|
||||
@ -319,6 +320,7 @@ div.replaydiv {
|
||||
background-color: #555;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50%;
|
||||
pointer-events:auto;
|
||||
}
|
||||
.gutter.gutter-vertical {
|
||||
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
|
||||
|
@ -336,6 +336,12 @@ var VerilogPlatform = function(mainElement, options) {
|
||||
onDrag: () => {
|
||||
if (this.waveview) this.waveview.recreate();
|
||||
},
|
||||
onDragStart: () => {
|
||||
$(".emuoverlay").css("pointer-events", "auto"); // allow drag
|
||||
},
|
||||
onDragEnd: () => {
|
||||
$(".emuoverlay").css("pointer-events", "none"); // disallow drag
|
||||
},
|
||||
});
|
||||
// setup mouse events
|
||||
video.setupMouseEvents();
|
||||
|
Loading…
x
Reference in New Issue
Block a user