- Fix: Map extension click events to "mousedown" so they can be received

on touch devices (since `touch.js` changes `touchstart` to
    `mousedown`) (@ClemArt); closes #168
- Fix: Ensure extension `mouseup` events run on "zoom" and "select"
  modes (@iuyiuy); closes #159
This commit is contained in:
Brett Zamir
2018-10-19 20:38:18 +08:00
parent 253732025a
commit 8024304a96
11 changed files with 58 additions and 14 deletions

View File

@@ -2615,7 +2615,7 @@ const mouseUp = function (evt) {
}
}
}
return;
break;
case 'zoom':
if (rubberBox != null) {
rubberBox.setAttribute('display', 'none');
@@ -2628,7 +2628,7 @@ const mouseUp = function (evt) {
height: Math.abs(realY - rStartY),
factor
});
return;
break;
case 'fhpath':
// Check that the path contains at least 2 points; a degenerate one-point path
// causes problems.