Remove the need to press ctrl while zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
776b0e8198
commit
f0abd52130
|
@ -79,7 +79,6 @@ export default class ImageView extends React.Component {
|
|||
};
|
||||
|
||||
onWheel = (ev) => {
|
||||
if (ev.ctrlKey) {
|
||||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
const newZoom =this.state.zoom - ev.deltaY;
|
||||
|
@ -96,7 +95,6 @@ export default class ImageView extends React.Component {
|
|||
zoom: newZoom,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
onRedactClick = () => {
|
||||
const ConfirmRedactDialog = sdk.getComponent("dialogs.ConfirmRedactDialog");
|
||||
|
|
Loading…
Reference in New Issue