Lightbox improvement - Drag navigation
Closes #381 (closed)
Merge request reports
Activity
added 1 commit
- 997bae94 - Enable drag navigation only when multi images
- Resolved by Edijs Bov
- Resolved by Edijs Bov
- Resolved by Edijs Bov
if you try dragging on desktop there's some weird side-effect on Chromium where the grabbed image moves with the cursor with gray edges depending on aspect ratio, there shouldn't be anything (which is how it works on firefox, which is good). Also the drag on mobile should use a way lower threshold, 100px is a lot especially when there's no feedback when you start dragging. I'd try something like 30-50px
I tried it on my phone (firefox) and responsive design mode in both ff and chromium yesterday, haven't tried the newer version yet.
Doing animations for the images will be a more difficult thing considering there's just one image that changes instead of one moving away while other one comes in, I'd leave it for further improvements if deemed necessary.
added 1 commit
- a0588e5a - Disable background scroll while lightbox visible
1 const isMobileBrowser = () => { 2 if (navigator.userAgent.match(/Android/i) ||