Skip to content

Remove offsetLeft and offsetTop where mouse tracking is needed. #1

@ReDEnergy

Description

@ReDEnergy

offsetLeft and offsetTop describe the offset relative to the parent element. Most modules work because they have a static positioning inside the page and the mouse movement tracking works as expected. However if those elements are placed with an absolute positioning the movement calculation will be wrong because of offsetLeft and offsetTop.

Where to fix:

  • wherever is used offsetLeft and offsetTop

Solution:

  • setMouseTraking() function that is used across multiple modules/tools need to be changed to something that keeps tracking of mouse movement based on the startX, startY position
  • unit compute logic will be changing because of this

Need to investigate:

  • ui-color-picker module
  • ui-slider
  • box-shadow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions