swiper icon indicating copy to clipboard operation
swiper copied to clipboard

Bug: issue with drag sliders and iframes

Open Daijobou opened this issue 4 years ago • 9 comments

See https://jsfiddle.net/2w0jmq8v/ (using current version on github)

  1. Start drag a slider and go outside of current iframe
  2. Stop mouse click
  3. Go back to iframe with slider and move only mouse

Result: Sliders are still moving without mouse click (dragging)

This happen in production, when you move mouse over iframes like videos or advertisments or leaving browser window.

You can detect this with event.which==0 in onSliderMove, but how I can stop sliding? This should be a default behavior.

Daijobou avatar May 07 '20 14:05 Daijobou

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 05 '20 01:11 stale[bot]

This bot is strange to mark a not answered report as inactive.

Daijobou avatar Nov 05 '20 10:11 Daijobou

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '21 16:06 stale[bot]

is there any solutions for this?

slamjs avatar Jun 22 '21 10:06 slamjs

That's what happened to me, too......

AdminiStuart avatar Jun 30 '21 08:06 AdminiStuart

The same problem , are there any solutions?

InnaCET avatar Aug 24 '21 15:08 InnaCET

I have same problem. I think swiper should provide a function let user give document object

Jerry-Hong avatar Aug 30 '21 01:08 Jerry-Hong

same problem and this issues ahs been ignored since 2018 https://github.com/nolimits4web/Swiper/issues/2411

kovalev92 avatar Dec 06 '21 19:12 kovalev92

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 12 '22 14:06 stale[bot]

This issue exists in v8.4.7 (EDIT: now its v9.0.0 and the same) on demo page https://swiperjs.com/demos#pagination

If you hold down on the slider and move the mouse into the left iFrame and end the mouse click there and move the mouse over the slider again, the mouse click is still active there and the slider moves, which it should not.

Daijobou avatar Feb 01 '23 09:02 Daijobou

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.

If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue

nolimits4web avatar Oct 24 '23 12:10 nolimits4web

@nolimits4web Its still reproducible on https://swiperjs.com/demos#pagination in version 11.0.1 as I described in my last post.

Daijobou avatar Oct 24 '23 23:10 Daijobou

Up

maliuta-oleksandr avatar Feb 23 '24 09:02 maliuta-oleksandr

I am still facing this issue. Any updates on this?

soorajbhaskaran avatar Apr 09 '24 18:04 soorajbhaskaran