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') {
 | 
					                        if (nearestNode.tagName == 'svg') {
 | 
				
			||||||
                            let handler = this.tapNodes.get(nearestNode);
 | 
					                            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)
 | 
					                            if (this.triggerSVGClicks)
 | 
				
			||||||
                                nearestNode.dispatchEvent(new Event('click'));
 | 
					                                nearestNode.dispatchEvent(new Event('click'));
 | 
				
			||||||
                            return
 | 
					                            return
 | 
				
			||||||
@ -7477,8 +7477,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            // MouseEvent
 | 
					            // MouseEvent
 | 
				
			||||||
            const mouseEventOpts = {
 | 
					            const mouseEventOpts = {
 | 
				
			||||||
                screenX: window.screenX + target.offsetLeft + position.x,
 | 
					                screenX: window.screenX + (target.offsetLeft || 0) + position.x,
 | 
				
			||||||
                screenY: window.screenY + target.offsetTop + position.y,
 | 
					                screenY: window.screenY + (target.offsetTop || 0) + position.y,
 | 
				
			||||||
                clientX: rect.x + position.x,
 | 
					                clientX: rect.x + position.x,
 | 
				
			||||||
                clientY: rect.y + position.y,
 | 
					                clientY: rect.y + position.y,
 | 
				
			||||||
                ctrlKey: false,
 | 
					                ctrlKey: false,
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								dist/iwmlib.pixi.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								dist/iwmlib.pixi.js
									
									
									
									
										vendored
									
									
								
							@ -6053,10 +6053,6 @@
 | 
				
			|||||||
    window.Capabilities = Capabilities;
 | 
					    window.Capabilities = Capabilities;
 | 
				
			||||||
    window.CapabilitiesTests = CapabilitiesTests;
 | 
					    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 */
 | 
					    /* eslint-disable no-unused-vars */
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * A base class for scatter specific events.
 | 
					     * A base class for scatter specific events.
 | 
				
			||||||
@ -7224,7 +7220,7 @@
 | 
				
			|||||||
                            */
 | 
					                            */
 | 
				
			||||||
                        if (nearestNode.tagName == 'svg') {
 | 
					                        if (nearestNode.tagName == 'svg') {
 | 
				
			||||||
                            let handler = this.tapNodes.get(nearestNode);
 | 
					                            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)
 | 
					                            if (this.triggerSVGClicks)
 | 
				
			||||||
                                nearestNode.dispatchEvent(new Event('click'));
 | 
					                                nearestNode.dispatchEvent(new Event('click'));
 | 
				
			||||||
                            return
 | 
					                            return
 | 
				
			||||||
@ -14867,7 +14863,7 @@
 | 
				
			|||||||
     * @extends Popup
 | 
					     * @extends Popup
 | 
				
			||||||
     * @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/popupmenu.html|DocTest}
 | 
					     * @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.
 | 
					         * Creates an instance of a PopupMenu.
 | 
				
			||||||
@ -15516,7 +15512,7 @@
 | 
				
			|||||||
    window.Stylus = Stylus;
 | 
					    window.Stylus = Stylus;
 | 
				
			||||||
    window.Switch = Switch;
 | 
					    window.Switch = Switch;
 | 
				
			||||||
    window.Popup = Popup;
 | 
					    window.Popup = Popup;
 | 
				
			||||||
    window.PopupMenu = PopupMenu$1;
 | 
					    window.PopupMenu = PopupMenu;
 | 
				
			||||||
    window.Modal = Modal;
 | 
					    window.Modal = Modal;
 | 
				
			||||||
    window.Volatile = Volatile;
 | 
					    window.Volatile = Volatile;
 | 
				
			||||||
    window.Message = Message;
 | 
					    window.Message = Message;
 | 
				
			||||||
 | 
				
			|||||||
@ -915,8 +915,8 @@ class Event {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // MouseEvent
 | 
					        // MouseEvent
 | 
				
			||||||
        const mouseEventOpts = {
 | 
					        const mouseEventOpts = {
 | 
				
			||||||
            screenX: window.screenX + target.offsetLeft + position.x,
 | 
					            screenX: window.screenX + (target.offsetLeft || 0) + position.x,
 | 
				
			||||||
            screenY: window.screenY + target.offsetTop + position.y,
 | 
					            screenY: window.screenY + (target.offsetTop || 0) + position.y,
 | 
				
			||||||
            clientX: rect.x + position.x,
 | 
					            clientX: rect.x + position.x,
 | 
				
			||||||
            clientY: rect.y + position.y,
 | 
					            clientY: rect.y + position.y,
 | 
				
			||||||
            ctrlKey: false,
 | 
					            ctrlKey: false,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user