-
Notifications
You must be signed in to change notification settings - Fork 295
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
configuring required gesture to select an item #846
Comments
dgrid doesn't rely on anything in dojox by default, in order to avoid requiring developers to include the entire package in builds, which significantly prolongs build time. |
I don't think so. |
That's a good point... sorry I responded off-the-cuff, clearly you are correct that right now |
While I was looking at another touch-related issue for Selection, I took a whack at making what you want to do feasible as well, in commit 69134ab (this is on a branch, not in master yet). With that changeset, you should be able to customize (Note that this changeset also hooks up the usual mouse/keyboard event listeners on touch devices as well, to account for touch+mouse devices.) |
I've tested this for myself with the aforementioned commit (now in master as fd95bfb). Setting |
I'm using dgrid in a mobile environment with an 'onClick'-action on the rows.
I also want to use the 'selection' feature.
since both use the 'tap' gesture, this doesn't work well.
I would suggest:
-) to use dojox/gesture/tap instead of dgrid-touch-util
-) use an grid-local event variable to hold the required gesture for selection-events (mobileSelectionEvent)
one may then be able to use the 'tap'-gesture for showing details and the 'tap-hold' gesture for selection (android-like)
I could provide a patch if you want
The text was updated successfully, but these errors were encountered: