Skip to content

Bug: Mobile & Touch Support Optimization #42

Description

@Pranav00076

Description:
The canvas does not behave perfectly on mobile devices. Trying to pan sometimes draws instead, and zooming is difficult.

How to Implement:

  1. Touch Events: Ensure Fabric.js is interpreting touch events properly. You might need to explicitly include the Fabric.js touch module or gesture handlers.
  2. Panning: Intercept touch events on the canvas container. If touches.length === 2, disable drawing mode and treat the motion as a pan gesture (canvas.relativePan).
  3. Zooming: Calculate the distance between two touch points on touchmove. If the distance increases, zoom in; if it decreases, zoom out (canvas.zoomToPoint).
  4. UI Adjustments: Hide hover-based tooltips and make toolbar buttons slightly larger for touch targets.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions