Skip to content

Commit

Permalink
demo/snap: fix grid drawing without relative
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Dec 16, 2014
1 parent 3d31d1c commit a78e58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/js/snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
}
})
.on('move down', function (event) {
if (event.type === 'down' || !event.interaction.pointerIsDown && status.relative.checked) {
if ((event.type === 'down' || !event.interaction.pointerIsDown) && status.relative.checked) {
var rect = interact.getElementRect(canvas);

snapOffset.x = event.pageX - rect.left;
Expand Down

0 comments on commit a78e58c

Please sign in to comment.