Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

DRR rotation miscalculated on first click  #655

@ble

Description

@ble

Affected part of DeckDeckGo

  • Web Components (DRR)

Reproduction

Steps to reproduce:

  1. Visit https://docs.deckdeckgo.com/components/drr/
  2. Resize element to have large width, small height: image
  3. Rotate element so that the rotation handle is nearly 90 or 270 degrees from horizontal:
    image
  4. Click the rotation handle and attempt to rotate it a short distance (by dragging the handle a short distance)
  5. Observe a large jump in rotation:
    image

Expected Behavior

The element should rotate a small amount, continuously with the motion of the mouse.

Actual Behavior

On the first rotation, the element's rotation angle jumps significantly.

Environment

  • Browser(s): Chrome Canary - Version 82.0.4069.0 (Official Build) canary (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions