Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text selection(default behaviour of the cursor drag) must not be removed. #2144

Closed
1 task done
nehachaudhary opened this issue Jul 3, 2017 · 1 comment
Closed
1 task done

Comments

@nehachaudhary
Copy link

nehachaudhary commented Jul 3, 2017

This is a (multiple allowed):

  • bug
    Text selection should not be overwritten by default in desktop layout. It should be condition based.
    I am using this library for swiping, it's working fine as expected on mobile/iPad layout. I don't need the swiping behaviour on desktop layout. The library should accept an argument which takes breakpoint after which the swiping should be enabled or simple true or false if swiping needed in desktop or not?

I have tried the solution which is provided in other issues but it doesn't work at all.
Following is the code:

$('.some-text').on('mousedown touchstart pointerdown', function (e){ e.stopPropagation(); });

stopPropagation stops all the event handling(includes browser default selection).

@lock
Copy link

lock bot commented Jun 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the outdated label Jun 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 25, 2018
moyus pushed a commit to moyus/swiper-lite that referenced this issue Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant