Update grab_to_pan.js

See b81897bee4
This commit is contained in:
Rob Wu 2016-05-07 23:46:56 +02:00
parent 8adddf031c
commit 057b4615ba

View File

@ -1,4 +1,4 @@
/* Copyright 2013 Rob Wu <gwnRob@gmail.com>
/* Copyright 2013 Rob Wu <rob@robwu.nl>
* https://github.com/Rob--W/grab-to-pan.js
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -215,7 +215,7 @@
// http://www.w3.org/TR/DOM-Level-3-Events/#events-MouseEvent-buttons
// Firefox 15+
// Internet Explorer 10+
return !(event.buttons | 1);
return !(event.buttons & 1);
}
if (isChrome15OrOpera15plus || isSafari6plus) {
// Chrome 14+