# HG changeset patch # User Alain Mazy # Date 1553523825 -3600 # Node ID 11510f92cc389bbac62e9b63f98b695025dedfd4 # Parent 75664eeacae5da53d54da89a0289364802b59675 passive events diff -r 75664eeacae5 -r 11510f92cc38 Platforms/Wasm/wasm-viewport.ts --- a/Platforms/Wasm/wasm-viewport.ts Wed Mar 20 15:27:04 2019 +0100 +++ b/Platforms/Wasm/wasm-viewport.ts Mon Mar 25 15:23:45 2019 +0100 @@ -235,7 +235,7 @@ var y = event.pageY - this.offsetTop; that.ViewportMouseWheel(that.pimpl_, event.deltaY, x, y, event.ctrlKey); event.preventDefault(); - }); + }, {passive: true}); this.htmlCanvas_.addEventListener('touchstart', function(event: TouchEvent) { // don't propagate events to the whole body (this could zoom the entire page instead of zooming the viewport) @@ -263,7 +263,7 @@ } that.ViewportTouchStart(that.pimpl_, event.targetTouches.length, x0, y0, x1, y1, x2, y2); - }); + }, {passive: true}); this.htmlCanvas_.addEventListener('touchend', function(event) { // don't propagate events to the whole body (this could zoom the entire page instead of zooming the viewport) @@ -369,7 +369,7 @@ z0[1], 0); } } - }); + }, {passive: true}); } public ResetTouch() {