This commit is contained in:
Sebastian Kupke 2019-07-08 15:44:06 +02:00
parent 1e17184194
commit 44a5b3385c
3 changed files with 8 additions and 12 deletions

6
dist/iwmlib.js vendored
View File

@ -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
View File

@ -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;

View File

@ -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,