Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Encapsulate gesture and tracking mode behaviour  #6557

Closed

Description

@tobrun

tldr: Current system around gestures and tracking modes introduces state management in the code (ie. if-else checks). Let's refactor this out.

Gestures

The Android SDK contains zoom, scroll, rotate and tilt gestures. These items can be enabled/disabled by users through xml and code and introduce a first layer of state management.

Tracking settings

Tracking settings allow the user to track location/heading. Users can configure tracking settings that impacts certain gestures (eg. setting bearing gps, disables rotate gesture). On top of that we also allow to hook into gesture code that results in disabling tracking modes.

Proposal

We have a complex system around gestures and tracking modes. It now introduces boilerplate and is a source of bugs (ref. #6549). Proposal is to look into refactoring this out into a design pattern and make it more testable.

Activity

  1. added
    Android
    on Oct 3, 2016
  2. added this to the milestone on Oct 3, 2016
  3. tobrun commented on Dec 2, 2016

    @tobrun
    MemberAuthor

    Happened with #7189

  4. tobrun commented on Dec 2, 2016

    @tobrun
    MemberAuthor

    additional implementation notes here is that we now have an Interface that is responsible for changing the focal point -> FocalPointChangeListener.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidrefactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions