Skip to content

macOS right-click slow-rapid clicking causes pan+zoom stuck #37

Description

@thePeterChung

Issue is present in repo demo but not in live demo (https://flow.demo.vyuh.tech/).

What I've tried:
Repo demo does not run had to:

  1. Updated font_awesome_flutter dependency: Added a dependency override in pubspec.yaml to use version 11.0.0 instead of 10.12.0. The older version was incompatible with newer Flutter versions where IconData is a final class.

  2. Fixed type compatibility: Changed the icon parameter type in _buildIconButton from IconData to FaIconData to match the FontAwesome icons being passed (FontAwesomeIcons.github and FontAwesomeIcons.dartLang).

Tested on
setup 1:

  • Flutter: 3.44.0
  • Dart: 3.12.0
  • vyuh_node_flow: ^0.27.3
  • Platform: macOS Chrome

setup 2:

  • Flutter: 3.35.0
  • Dart: 3.9.0
  • vyuh_node_flow: ^0.27.3
  • Platform: macOS Chrome

SOLUTION: Zoom Disable Workaround
config: NodeFlowConfig(
showAttribution: false,
scrollToZoom: false,
minZoom: 1.0, // ← KEY FIX
maxZoom: 1.0, // ← KEY FIX
)

Questions:

  1. If the live demo is using same pubspec.yaml why does the issue not trigger?
  2. What exact versions of dependencies are used so i can replicate live demo env?
  3. I have tried many approaches on own project to fix issue can you suggest where i should I focus to debug the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions