Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 9767fbc

Browse files
author
fritz-c
committed
Enable hardware acceleration of zooming
1 parent 78c31ba commit 9767fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var styles = {
5757
},
5858
imageCurrent: function (zoomRatio, offsetX, offsetY) {
5959
return {
60-
transform: 'scale(' + zoomRatio + ') ',
60+
transform: 'scale3d(' + zoomRatio + ',' + zoomRatio + ',1) ',
6161
left: -1 * offsetX,
6262
right: offsetX,
6363
top: -1 * offsetY,

0 commit comments

Comments
 (0)