Leaflet / Leaflet/Path.Drag.js

Option to ignore right click

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
30
Forks
13
PR merge metrics
No merged PRs in 30d

Description

It would be super nice to be able to select which mouse button can drag the path.
In my application I want to be able to rotate objects with right-click, which results in an interesting behavior when right-clicking into a path. It rotates and moves the path at the same time.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no file, test, or entry point. Start by tracing the plugin’s path-drag mouse handling and identify where the initiating mouse button is accepted; done means callers can select which button drags a path without the right-click rotation conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.