Skip to content

Error when dragging canvas using touch #3741

@Jummit

Description

@Jummit

Describe the bug

When dragging on the canvas using touch-input an error occurs.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new project
  2. Drag on the canvas
  3. See error
Gaphor version:         3.0.0
Operating System:       Linux (6.8.0-51-generic, x86_64)
Display:                GdkWaylandDisplay
Python version:         3.12.8
GTK version:            4.16.12
Adwaita version:        1.6.3
GtkSourceView version:  5.14.2
Cairo version:          1.18.2
Pango version:          1.54.0
PyGObject version:      3.50.0
Pycairo version:        1.27.0

Errors:

Time since application startup: 0:13:55
|Traceback (most recent call last):
|  File "/app/lib/python3.12/site-packages/gaphor/ui/diagrampage.py", line 336, in on_show_popup
|    or not ctrl.get_last_event().triggers_context_menu()
|AttributeError: 'NoneType' object has no attribute 'triggers_context_menu'

Expected behavior

No error should occur, and in some situations a selection box should appear. I also expect to be able to drag elements around.

OS

  • Linux, Ubuntu

Version

Version of Gaphor: 3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions