Fixed #17.
This commit is contained in:
parent
1e17184194
commit
44a5b3385c
6
dist/iwmlib.js
vendored
6
dist/iwmlib.js
vendored
@ -5459,7 +5459,7 @@
|
||||
*/
|
||||
if (nearestNode.tagName == 'svg') {
|
||||
let handler = this.tapNodes.get(nearestNode);
|
||||
console.log("Clicking beneath SVG: to be done", handler);
|
||||
console.log("Clicking near SVG: to be done", handler);
|
||||
if (this.triggerSVGClicks)
|
||||
nearestNode.dispatchEvent(new Event('click'));
|
||||
return
|
||||
@ -7477,8 +7477,8 @@
|
||||
|
||||
// MouseEvent
|
||||
const mouseEventOpts = {
|
||||
screenX: window.screenX + target.offsetLeft + position.x,
|
||||
screenY: window.screenY + target.offsetTop + position.y,
|
||||
screenX: window.screenX + (target.offsetLeft || 0) + position.x,
|
||||
screenY: window.screenY + (target.offsetTop || 0) + position.y,
|
||||
clientX: rect.x + position.x,
|
||||
clientY: rect.y + position.y,
|
||||
ctrlKey: false,
|
||||
|
10
dist/iwmlib.pixi.js
vendored
10
dist/iwmlib.pixi.js
vendored
@ -6053,10 +6053,6 @@
|
||||
window.Capabilities = Capabilities;
|
||||
window.CapabilitiesTests = CapabilitiesTests;
|
||||
|
||||
/** Basic class for poppable elements that need to be closed as soon as one poppable is
|
||||
* shown.
|
||||
*/
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
/**
|
||||
* A base class for scatter specific events.
|
||||
@ -7224,7 +7220,7 @@
|
||||
*/
|
||||
if (nearestNode.tagName == 'svg') {
|
||||
let handler = this.tapNodes.get(nearestNode);
|
||||
console.log("Clicking beneath SVG: to be done", handler);
|
||||
console.log("Clicking near SVG: to be done", handler);
|
||||
if (this.triggerSVGClicks)
|
||||
nearestNode.dispatchEvent(new Event('click'));
|
||||
return
|
||||
@ -14867,7 +14863,7 @@
|
||||
* @extends Popup
|
||||
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/popupmenu.html|DocTest}
|
||||
*/
|
||||
class PopupMenu$1 extends Popup {
|
||||
class PopupMenu extends Popup {
|
||||
|
||||
/**
|
||||
* Creates an instance of a PopupMenu.
|
||||
@ -15516,7 +15512,7 @@
|
||||
window.Stylus = Stylus;
|
||||
window.Switch = Switch;
|
||||
window.Popup = Popup;
|
||||
window.PopupMenu = PopupMenu$1;
|
||||
window.PopupMenu = PopupMenu;
|
||||
window.Modal = Modal;
|
||||
window.Volatile = Volatile;
|
||||
window.Message = Message;
|
||||
|
@ -915,8 +915,8 @@ class Event {
|
||||
|
||||
// MouseEvent
|
||||
const mouseEventOpts = {
|
||||
screenX: window.screenX + target.offsetLeft + position.x,
|
||||
screenY: window.screenY + target.offsetTop + position.y,
|
||||
screenX: window.screenX + (target.offsetLeft || 0) + position.x,
|
||||
screenY: window.screenY + (target.offsetTop || 0) + position.y,
|
||||
clientX: rect.x + position.x,
|
||||
clientY: rect.y + position.y,
|
||||
ctrlKey: false,
|
||||
|
Loading…
Reference in New Issue
Block a user