Skip to content
Discussion options

You must be logged in to vote

It sounds like the swipe gesture is still enabled in Swipebox, so when you pinch to zoom or move your finger across the image, the plugin interprets it as a swipe and switches to the next or previous image.

This behavior is usually controlled by the JavaScript, not the CSS. The swipebox.css file only affects the appearance, while the swipe functionality is implemented in jquery.swipebox.min.js.

Before modifying the minified file, I would recommend checking whether your version of Swipebox provides an option to disable touch navigation or swipe gestures during initialization. If such an option exists, that's the preferred solution.

If your version doesn't support it, you may need to either:

Replies: 1 comment

This comment was marked as low quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
2 participants