Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 620e847

Browse files
committed
fix(test): get the original event when using jquery
1 parent 9198b89 commit 620e847

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/ui-layout.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ angular.module('ui.layout', [])
128128

129129
function _resize(mouseEvent) {
130130
// Store the mouse position for later
131-
lastX = mouseEvent[mouseProperty];
131+
132+
// FIX :
133+
// - with touch events, when using jQuery, the mouseEvent is in fact a jQueryEvent. So we use originalEvent here.
134+
lastX = mouseEvent[mouseProperty] || mouseEvent.originalEvent[mouseProperty];
132135

133136
// Cancel previous rAF call
134137
if (animationFrameRequested) {

0 commit comments

Comments
 (0)