Browse Source

Fixed #17.

obersalzberg
Sebastian Kupke 1 year ago
parent
commit
44a5b3385c
3 changed files with 8 additions and 12 deletions
  1. +3
    -3
      dist/iwmlib.js
  2. +3
    -7
      dist/iwmlib.pixi.js
  3. +2
    -2
      lib/uitest.js

+ 3
- 3
dist/iwmlib.js 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,

+ 3
- 7
dist/iwmlib.pixi.js 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;

+ 2
- 2
lib/uitest.js 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,

Loading…
Cancel
Save