@@ -89,7 +89,7 @@ IonicModule
89
89
}
90
90
//if this is a new drag, keep track of where we start
91
91
if ( startY === null ) {
92
- startY = Math . floor ( e . touches [ 0 ] . screenY ) ;
92
+ startY = e . touches [ 0 ] . screenY ;
93
93
}
94
94
95
95
// kitkat fix for touchcancel events http://updates.html5rocks.com/2014/05/A-More-Compatible-Smoother-Touch
@@ -99,7 +99,7 @@ IonicModule
99
99
}
100
100
101
101
// how far have we dragged so far?
102
- deltaY = Math . floor ( e . touches [ 0 ] . screenY ) - startY ;
102
+ deltaY = e . touches [ 0 ] . screenY - startY ;
103
103
104
104
// if we've dragged up and back down in to native scroll territory
105
105
if ( deltaY - dragOffset <= 0 || scrollParent . scrollTop !== 0 ) {
@@ -110,7 +110,7 @@ IonicModule
110
110
}
111
111
112
112
if ( isDragging ) {
113
- nativescroll ( scrollParent , Math . floor ( deltaY - dragOffset ) * - 1 ) ;
113
+ nativescroll ( scrollParent , deltaY - dragOffset * - 1 ) ;
114
114
}
115
115
116
116
// if we're not at overscroll 0 yet, 0 out
@@ -135,7 +135,7 @@ IonicModule
135
135
136
136
isDragging = true ;
137
137
// overscroll according to the user's drag so far
138
- overscroll ( Math . floor ( ( deltaY - dragOffset ) / 3 ) ) ;
138
+ overscroll ( ( deltaY - dragOffset ) / 3 ) ) ;
139
139
140
140
// update the icon accordingly
141
141
if ( ! activated && lastOverscroll > ptrThreshold ) {
0 commit comments