dsmorse / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns

Home Page:http://dsmorse.github.io/gridster.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can gridster prevent link clicks while dragging?

timothymarois opened this issue · comments

If I have a grid, and there are links embedded inside the items, I noticed the drag works, the moment the drag ends, the link its fired, but how about if I want to drag and not click the link?

I don't see that in the API, unless I missed it. but the idea is to allow the user to drag items around, but only go to the item destination when they clicked not dragged. Is this possible in some way?

I found a solution here for this

https://stackoverflow.com/questions/14301026/how-do-i-avoid-a-click-event-firing-after-dragging-a-gridster-js-widget-with-cli

I'm wondering if this should be something implemented in gridster as an option.

Will close this for now since it can be accomplished using a third party rig, which appears to work decently well. Though I'd prefer it to be integrated as a real feature. Will revisit this later.