Skip to content

Stop event propagation when panning #465

@DonaldDuck313

Description

@DonaldDuck313

I'm making a game where the graphics are SVG based, so I use this library to pan across the game. Some of the elements inside the SVG have onclick listeners so that game actions are performed when I click on them.

The problem is that when I pan, it pans as it should, but then when it's finished panning and the mouse happens to be on top of an element with a click listener, that click listener runs as well.

Is there a way to stop event propagation so that when I drag to pan it only pans and ignores any click listeners? If not, could this be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions