Loads qrcode extension on demand now.

This commit is contained in:
Lars Jung 2012-10-13 21:30:41 +02:00
parent 787d37853b
commit 17ad8d0632
5 changed files with 37 additions and 13 deletions

View file

@ -73,13 +73,15 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/event'], functio
selectionStart = function (event) {
var view = $(document).fracs('viewport');
var $window = $(window),
viewRight = $window.scrollLeft() + $window.width(),
viewBottom = $window.scrollTop() + $window.height();
x = event.pageX;
y = event.pageY;
// only on left button and don't block the scrollbars
if (event.button !== 0 || x >= view.right || y >= view.bottom) {
if (event.button !== 0 || x >= viewRight || y >= viewBottom) {
return;
}