mapbox / mapbox/mapbox-gl-js

Reduce speed of mouse when drag on mapbox

Open
#12,551 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

[https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/](url)

I'm using Library threeJS to display 3D Model, but the Model is too big. So I need to slow down the mouse speed when dragging to see full detail of 3D Model on the Mapbox.

I tried change value of dragPanOptions but nothing happen.
[https://docs.mapbox.com/mapbox-gl-js/api/handlers/#dragpanhandler#enable](url)

Can someone please help me how to do this?

Contributor guide

Open the contributing guide

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

Start by reproducing the linked Mapbox add-3d-model example and reviewing the dragPanOptions and DragPanHandler documentation referenced in the issue. Done would require a clearly supported way to reduce mouse dragging speed while inspecting the Three.js model, but the issue does not identify a source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
three.js, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.