From 2f8348ed92014cdbaa5105d0680e136c7599f851 Mon Sep 17 00:00:00 2001 From: Yuriy Yevstihnyeyev Date: Wed, 9 Sep 2020 16:43:06 +0300 Subject: [PATCH] Update detecting of the scrollType --- vaadin-dir-helper.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vaadin-dir-helper.html b/vaadin-dir-helper.html index 93465d0..65af7e9 100644 --- a/vaadin-dir-helper.html +++ b/vaadin-dir-helper.html @@ -33,8 +33,8 @@ if (dummy.scrollLeft > 0) { cachedType = 'default'; } else { - dummy.scrollLeft = 1; - if (dummy.scrollLeft === 0) { + dummy.scrollLeft = 2; + if (dummy.scrollLeft < 2) { cachedType = 'negative'; } }