Skip to content

Commit

Permalink
release 0.8.3: fix safari zoom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed Oct 23, 2016
1 parent 9c6871e commit 0cdfcfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "piskel",
"version": "0.9.0-SNAPSHOT",
"version": "0.8.3",
"description": "Pixel art editor",
"author": "Julian Descottes <julian.descottes@gmail.com>",
"contributors": [
Expand Down
8 changes: 5 additions & 3 deletions src/js/controller/DrawingController.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,15 @@
var evt = jQueryEvent.originalEvent;
// Ratio between wheelDeltaY (mousewheel event) and deltaY (wheel event) is -40
var delta;
if (pskl.utils.UserAgent.isChrome) {
delta = evt.wheelDeltaY;
} else if (pskl.utils.UserAgent.isIE11) {
if (pskl.utils.UserAgent.isIE11) {
delta = evt.wheelDelta;
} else if (pskl.utils.UserAgent.isFirefox) {
delta = -40 * evt.deltaY;
} else {
delta = evt.wheelDeltaY;
}

delta = delta || 0;
var modifier = (delta / 120);

if (pskl.utils.UserAgent.isMac ? evt.metaKey : evt.ctrlKey) {
Expand Down

0 comments on commit 0cdfcfc

Please sign in to comment.