Mercurial > libervia-web
diff libervia/pages/_browser/slideshow.py @ 1340:d5f6793dc17c
browser (slideshow): use non zero threshold to avoid accidental swipe
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 24 Aug 2020 22:47:51 +0200 |
parents | 5ff6e187084f |
children | a8bc1ee455ae |
line wrap: on
line diff
--- a/libervia/pages/_browser/slideshow.py Sat Aug 15 23:29:00 2020 +0200 +++ b/libervia/pages/_browser/slideshow.py Mon Aug 24 22:47:51 2020 +0200 @@ -56,6 +56,9 @@ self.swiper = Swiper.new( ".swiper-container", { + # default 0 value results in lot of accidental swipes, notably when media + # player is used + "threshold": 10, "pagination": { "el": ".swiper-pagination", },