Permalink
Browse files

Allow pressing anywhere on the docoument to trigger resizing

Better UX when your mouse cursor moves over the iframe while resizing
  • Loading branch information...
1 parent ceb75ff commit 1a159b114641fdb88d02e9c17bed455500c8471d @beaucollins committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/app.js
View
@@ -179,7 +179,7 @@ var Slider = function(frame, options){
};
document.addEventListener('mousemove', detector);
- section.addEventListener('mousedown', down);
+ document.addEventListener('mousedown', down);
document.body.addEventListener('mouseup', release);
}

0 comments on commit 1a159b1

Please sign in to comment.