abcjs 6.1.4 → 6.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE.md +6 -0
- package/dist/abcjs-basic-min.js +2 -2
- package/dist/abcjs-basic.js +6 -4
- package/dist/abcjs-basic.js.map +1 -1
- package/dist/abcjs-plugin-min.js +2 -2
- package/package.json +1 -1
- package/src/write/selection.js +9 -5
- package/version.js +1 -1
package/package.json
CHANGED
package/src/write/selection.js
CHANGED
|
@@ -200,11 +200,15 @@ function getTarget(target) {
|
|
|
200
200
|
|
|
201
201
|
var found = target.getAttribute("selectable");
|
|
202
202
|
while (!found) {
|
|
203
|
-
|
|
204
|
-
if (target.tagName === "svg")
|
|
203
|
+
if (!target.parentElement)
|
|
205
204
|
found = true;
|
|
206
|
-
else
|
|
207
|
-
|
|
205
|
+
else {
|
|
206
|
+
target = target.parentElement;
|
|
207
|
+
if (target.tagName === "svg")
|
|
208
|
+
found = true;
|
|
209
|
+
else
|
|
210
|
+
found = target.getAttribute("selectable");
|
|
211
|
+
}
|
|
208
212
|
}
|
|
209
213
|
return target;
|
|
210
214
|
}
|
|
@@ -298,7 +302,7 @@ function mouseUp(ev) {
|
|
|
298
302
|
var _ev = ev;
|
|
299
303
|
if (ev.type === 'touchend' && this.lastTouchMove) {
|
|
300
304
|
attachMissingTouchEventAttributes(this.lastTouchMove);
|
|
301
|
-
if (
|
|
305
|
+
if (this.lastTouchMove.touches.length > 0)
|
|
302
306
|
_ev = this.lastTouchMove.touches[0];
|
|
303
307
|
}
|
|
304
308
|
|
package/version.js
CHANGED