Permalink
Browse files

Fixed issue with Sencha 2.3.

  • Loading branch information...
1 parent 1b74ffc commit eb8e0d442454c1a6cc9a912a3a39200e0cf12954 @wnielson committed Aug 20, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 ux/slidenavigation/View.js
View
2 ux/slidenavigation/View.js
@@ -511,7 +511,7 @@ Ext.define('Ext.ux.slidenavigation.View', {
* which direction to finish moving the container based on its current position and velocity.
*/
onContainerDragend: function(draggable, e, eOpts) {
- var velocity = Math.abs(e.deltaX / e.deltaTime),
+ var velocity = typeof(e.deltaTime) != "undefined" ? Math.abs(e.deltaX / e.deltaTime) : e.absDeltaX / (e.time - e.startTime),
listPosition = this.getListPosition(),
direction = (e.deltaX > 0) ? "right" : "left",
offset = Ext.clone(draggable.offset),

0 comments on commit eb8e0d4

Please sign in to comment.