You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Remove the need to press ctrl while zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user