Allow manual selection of panningMode

Open
#1,510 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
kotlin

Research direction

Start in plot-base/src/commonMain/kotlin/org/jetbrains/letsPlot/core/interact/feedback/PanGeomFeedback.kt, where panningMode is selected from the initial pan movement. Trace how pan options are exposed and determine where a manual PanningMode option belongs. Done means callers can select PanningMode.FREE instead of relying on the initial movement.

Written by the indexing model from the issue text.

Description

When panning on a plot, the pan mode is currently hardcoded depending on the initial movement of the pan in PanGeomFeedback.kt.

If the initial pan movement is horizontal or vertical, it sets the panningMode to PanningMode.HORIZONTAL or PanningMode.VERTICAL.

Can we expose an option to manually set the panningMode to always be PanningMode.FREE?

Dominant language
Kotlin
Stars
1.8k
Forks
63
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JetBrains/lets-plot

All issues in JetBrains/lets-plot

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.