Skip to content

Zoom shortcut not working with the mouse #1189

@scribblemaniac

Description

@scribblemaniac

Issue Summary

The control+drag shortcut for zooming does not appear to be working for me.

Actual Results

Holding control and dragging with the left mouse button freezes the canvas cursor at point where the dragging started, and the canvas does not resize. The canvas cursor does not update until the first movement after release. Control+dragging with a tablet works correctly.

Expected Results

Holding control and dragging with the mouse should zoom the canvas in or out.

Steps to reproduce

  1. Hold control
  2. Left click and drag

System Information

  • Pencil2D Version: e4e7d1a nightly build or v0.6.2 build from source

  • Operating System: macOS 10.13.6

  • RAM Size: 16 GB

  • Qt Version: 5.12.1


Technical Details

I'm assuming this is macOS only since @Jose-Moreno has been using this with the latest nightlies. After a little bit of testing, I have determined that ScribbleArea::mouseMoveEvent and ScribbleArea::mouseReleaseEvent are not getting called at all when the control button is held. ScribbleArea::mousePressEvent is called as expected. This could be because control+click has a default behavior on mac of opening the context menu.

The shortcut works with the v0.6.2 build, however it does not work when I build that tag manually, which suggests that this is almost certainly a Qt 5.12 issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Medium priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions