Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Draggable - container with links with no space between them

Recommended Posts

I couldn't find a way to enable draggable scrolling if the initial target is a link. The same issue can be seen here - https://greensock.com/draggable- you can't scroll the element if you drag it by the "Club GreenSock" link. What can I do to enable dragging for this use case?




See the Pen EJaeG by nyordanov (@nyordanov) on CodePen

Link to post
Share on other sites

Hi nyordanov  :)


you should to use this : dragClickables : true


dragClickables : Boolean - By default, Draggable will ignore clicks on <a>, <input> <select>,<button>, and <textarea> elements (as well as any element that has a data-clickable="true"attribute), allowing the browser's default behavior (like clicking on an input would give it focus and drop the cursor there to begin typing), but if you want Draggable to hijack those clicks and initiate dragging instead, set dragClickables : true.


and check this out :

See the Pen nrbpd by MAW (@MAW) on CodePen

  • Like 2
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.