From eb2f5ac3a714aefce948d447a4004b94e35e44a9 Mon Sep 17 00:00:00 2001 From: Johannes Tuikkala Date: Thu, 29 Sep 2016 11:03:29 +0300 Subject: Fixed touch scrolling issue in Surface and WP devices (#18737) Fixed by using mouse events instead of touchevents when the browser is IE or Edge (added isIEOrEdge utility method in the BrowserInfo). Also added touch-action: none; css rules into escalator.css to prevent default touch behaviour on IE and Edge No new unit tests since we do not have automatic touch testing possibilities yet. Please test manually with Surface: IE and Edge, use for example uitest: com.vaadin.tests.components.grid.basics.GridBasics Change-Id: I5b37f1648e2051ea0ab4d56ab767186b532da07c --- themes/src/main/themes/VAADIN/themes/base/escalator/escalator.scss | 3 +++ 1 file changed, 3 insertions(+) (limited to 'themes') diff --git a/themes/src/main/themes/VAADIN/themes/base/escalator/escalator.scss b/themes/src/main/themes/VAADIN/themes/base/escalator/escalator.scss index 2d5ad729fc..15fda265ca 100644 --- a/themes/src/main/themes/VAADIN/themes/base/escalator/escalator.scss +++ b/themes/src/main/themes/VAADIN/themes/base/escalator/escalator.scss @@ -75,6 +75,9 @@ } .#{$primaryStyleName}-body { + -ms-touch-action: none; + touch-action: none; + z-index: 0; top: 0; -- cgit v1.2.3