Removed global dragging variable

The "dragging" variable is now handled in Input.js
This commit is contained in:
unsettledgames
2021-07-22 15:21:48 +02:00
parent b959a70f55
commit 0d7a00c62f
3 changed files with 17 additions and 20 deletions

View File

@ -24,7 +24,7 @@ new Tool('resizeline', {
new Tool('pan', {
cursor: function () {
if (dragging) return 'url(\'/pixel-editor/pan-held.png\'), auto';
if (Input.isDragging()) return 'url(\'/pixel-editor/pan-held.png\'), auto';
else return 'url(\'/pixel-editor/pan.png\'), auto';
},
});