question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pointer positions of clipped and rotated element are wrong

See original GitHub issue

Environments

  • Framework name: React
  • Framework version: 16.9.0
  • Moveable Component version: 0.41.1
  • Testable Address(optional):

Description

I think there is an issue with the calculation of x and y positions of moveable-clip-control pointer. You can see the screenshot here`

bug

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
daybrushcommented, Nov 10, 2022

@hrachmkr

Does CSS exist for clip-index of 0, 1, 2, 3, 4 ?

The transform is written based on the center of the control.

margin-left, margin-top should be half of width.height.

margin-left: -10px;
width: 20px;
0reactions
hrachmkrcommented, Nov 11, 2022

okaay, I got. Thanks a lot for your quick response 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

offset-rotate - CSS: Cascading Style Sheets - MDN Web Docs
The offset-rotate CSS property defines the orientation/direction of the element as it is positioned along the offset-path.
Read more >
4 reasons your z-index isn't working (and how to fix it)
Z-index is a CSS property that allows you to position elements in layers on top of one another. It's super useful, and honestly...
Read more >
clip-path - CSS-Tricks
The clip-path property in CSS allows you to specify a specific region of an element to display, with the rest being hidden (or...
Read more >
Pointing devices - Inputs - Human Interface Guidelines - Design
Enable multiple selection in custom views when necessary. ... With a content effect, the UI element or region beneath the pointer can also...
Read more >
List of Compose modifiers - Jetpack - Android Developers
Position the element vertically such that the alignment line for the ... Clip the content to the bounds of a layer defined at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found