Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Provide data-delay option to circumvent 300ms issue #5711

Closed
mhemesath opened this issue Feb 28, 2013 · 2 comments
Closed

Provide data-delay option to circumvent 300ms issue #5711

mhemesath opened this issue Feb 28, 2013 · 2 comments

Comments

@mhemesath
Copy link

It would be great if there was a data attribute to target specific UI components to trigger instantly rather than waiting for the 300ms delay. In particular, I think anything in a fixed header/footer/panel would be safe to not have a delay. Making this easy to do would prevent ppl from having to roll their own solutions such as those described here: http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone

In a nutshell, I'm using the script by cubiq and doing this

// No delay on links in header and fixed panel
$(document).on('pageinit', function() {
  $('[data-role="header"], #mainMenuPanel').noClickDelay();
});

I'd much rather do this

<div data-role="header" data-tap-delay="none"></div>

I know this has been discussed a 100 times over, I'm just not sure if anyone proposed a configurable option to target strategic UI components.

Thanks!

@jaspermdegroot
Copy link
Contributor

@toddparker @gabrielschulhof

We have to think about an alternative for buttonMarkup.hoverDelay when we are going to use pseudo classes for hover and down/active state.

@jaspermdegroot
Copy link
Contributor

Closing this ticket as duplicate of #5464

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

2 participants