Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1339:3a1cb3c5702f | 1340:d5f6793dc17c |
---|---|
54 elt.style.display = "none" | 54 elt.style.display = "none" |
55 document.body <= self.slideshow_elt | 55 document.body <= self.slideshow_elt |
56 self.swiper = Swiper.new( | 56 self.swiper = Swiper.new( |
57 ".swiper-container", | 57 ".swiper-container", |
58 { | 58 { |
59 # default 0 value results in lot of accidental swipes, notably when media | |
60 # player is used | |
61 "threshold": 10, | |
59 "pagination": { | 62 "pagination": { |
60 "el": ".swiper-pagination", | 63 "el": ".swiper-pagination", |
61 }, | 64 }, |
62 "navigation": { | 65 "navigation": { |
63 "nextEl": ".swiper-button-next", | 66 "nextEl": ".swiper-button-next", |