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

Commit 161d88f

Browse files
committed
fix(layout): replace event property name to page*
use event.pageX and event.pageY Closes #8
1 parent 383fed7 commit 161d88f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ui-layout.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ angular.module('ui.layout', [])
8080

8181
// Use relative mouse position
8282
var isUsingColumnFlow = parentLayout.opts.flow === 'column';
83-
var mouseProperty = ( isUsingColumnFlow ? 'x' : 'y');
83+
var mouseProperty = ( isUsingColumnFlow ? 'pageX' : 'pageY');
8484

8585
// Use bounding box / css property names
8686
var flowProperty = ( isUsingColumnFlow ? 'left' : 'top');

0 commit comments

Comments
 (0)