Fix touch events on locked elements.
This commit is contained in:
@@ -398,6 +398,7 @@ Card.prototype = {
|
||||
this.btnDelete.style.display = "none";
|
||||
this.btnLock.style.display = "none";
|
||||
this.btnUnlock.style.display = "";
|
||||
this.divOverlay.className = "divOverlayTouchable";
|
||||
this.divOverlay.removeEventListener("mousedown", this.divOverlay_MouseDownBinded, false);
|
||||
this.divOverlay.removeEventListener("touchstart", this.divOverlay_TouchStartBinded, false);
|
||||
this.divResize.style.display = "none";
|
||||
@@ -406,6 +407,7 @@ Card.prototype = {
|
||||
this.btnDelete.style.display = "";
|
||||
this.btnLock.style.display = "";
|
||||
this.btnUnlock.style.display = "none";
|
||||
this.divOverlay.className = "divOverlay";
|
||||
this.divOverlay.addEventListener("mousedown", this.divOverlay_MouseDownBinded, false);
|
||||
this.divOverlay.addEventListener("touchstart", this.divOverlay_TouchStartBinded, false);
|
||||
this.divResize.style.display = "";
|
||||
@@ -1015,6 +1017,7 @@ Region.prototype = {
|
||||
this.btnDelete.style.display = "none";
|
||||
this.btnLock.style.display = "none";
|
||||
this.btnUnlock.style.display = "";
|
||||
this.divOverlay.className = "divOverlayTouchable";
|
||||
this.divOverlay.removeEventListener("mousedown", this.divOverlay_MouseDownBinded, false);
|
||||
this.divOverlay.removeEventListener("touchstart", this.divOverlay_TouchStartBinded, false);
|
||||
this.divResize.style.display = "none";
|
||||
@@ -1023,6 +1026,7 @@ Region.prototype = {
|
||||
this.btnDelete.style.display = "";
|
||||
this.btnLock.style.display = "";
|
||||
this.btnUnlock.style.display = "none";
|
||||
this.divOverlay.className = "divOverlay";
|
||||
this.divOverlay.addEventListener("mousedown", this.divOverlay_MouseDownBinded, false);
|
||||
this.divOverlay.addEventListener("touchstart", this.divOverlay_TouchStartBinded, false);
|
||||
this.divResize.style.display = "";
|
||||
|
||||
@@ -125,6 +125,16 @@
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.divCard .divOverlayTouchable {
|
||||
opacity: 0;
|
||||
background-color: rgb(255,255,0);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.divCard .divResize {
|
||||
opacity: 0;
|
||||
background-color: rgb(255,0,255);
|
||||
@@ -243,6 +253,16 @@
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.divRegion .divOverlayTouchable {
|
||||
opacity: 0;
|
||||
background-color: rgb(255,255,0);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.divRegion .divResize {
|
||||
opacity: 0;
|
||||
background-color: rgb(255,0,255);
|
||||
|
||||
Reference in New Issue
Block a user