Skip to content
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

Utilize browser `click` event for taps where appropriate #1176

Closed
petyosi opened this Issue Oct 12, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@petyosi
Copy link
Contributor

commented Oct 12, 2015

Many Kendo UI widgets rely on the internal UserEvents class abstraction to handle user actions like clicking, dragging, tapping, etc. The abstraction in question handles many cross-browser issues, including the delayed click issue present in the iOS platform.

http://www.telerik.com/blogs/what-exactly-is.....-the-300ms-click-delay

Until the Q3 2015, the tap event was raised based on a mousedown/mouseup (touchstart/touchend) sequence without any significant mouse/finger move in between. While necessary on mobile platforms, the approach caused various troubles and reduced some of the the widgets usability on desktop platforms, where users are used to app successfully responding to mouse clicks even with significant movement (in fact, you can move your mouse freely within the element boundaries). The right thing to do in that case would be the UserEvents to utilize the click event where appropriate (no delay expected).

The change however may lead to unexpected behavior in a variety of scenarios which relied on the tap being triggered by mouseup. To avoid this, we will introduce simple means to restore the previous behavior:

// override the Kendo UI support flag to restore pre-2015 Q3 tap behavior. 
kendo.support.delayedClick = function() {
return true;
}

The widgets affected by this change are the Grid, Gantt, TreeList,Scheduler, Toolbar, and Spreadsheet.

@petyosi petyosi added the Enhancement label Oct 12, 2015

@petyosi petyosi closed this in 102ec8c Oct 12, 2015

@petyosi petyosi added this to the 2016.Q1 milestone Oct 14, 2015

@petyosi petyosi self-assigned this Oct 14, 2015

@tsvetomir tsvetomir changed the title [Breaking] Utilize browser `click` event for taps where appropriate Utilize browser `click` event for taps where appropriate Nov 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.