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
Don't Stop 'touchend' Propagation all the time #8
Comments
Thank you ! I just commited your enhancement ! |
Hi Works alright if open in Safari. Should i be doing anything specific to get it to work ? Regards, |
Hi, |
Hi, please click on 'Club News' at this link http://clubapp.org/golf/index.html?clubid=4#pgNews if i click the image for each news item in safari (desktop or phone) it opens in a popup. The full code for just the pgNews page is
|
Hi Regards |
Here is a possible enhancement. This comes in handy when trying to make scrollable elements clickable. Only prevent default when the user didn't scroll up ro down. Here are the changes I made:
Comment out event.preventDefault(); in 'touchend' bind
// Add touch end listener
container.bind(_getTouchEventName($this, 'touchend'), function(event) {
// Prevent default behaviour
// event.preventDefault();
// Handle
_handleTouchEndEvent(event, $this);
});
Prevent default in _handleTouchEndEvent when the user didn't scroll. See "startTouchY != lastTouchY"
/* Handles touchend event. */
function _handleTouchEndEvent(event, instance) {
}
The text was updated successfully, but these errors were encountered: