Prism icon indicating copy to clipboard operation
Prism copied to clipboard

Sometimes there's a gap between the left and right sides

Open aheze opened this issue 1 year ago • 1 comments

Sometimes a gap appears:

Normal Gap
Screen Shot 2022-09-27 at 9 59 12 AM Screen Shot 2022-09-27 at 9 59 09 AM

The gap sometimes gets more pronounced when animating the tilt.

This is probably due this rotationEffect here:

Screen Shot 2022-09-27 at 10 07 16 AM

We need to find a way for the tiltRight function to apply that rotation effect too, instead of splitting it into two.

https://github.com/aheze/Prism/blob/6879fddd60d41ec6012501f07bb38963cb596fd2/Sources/PrismEffect.swift#L61

aheze avatar Sep 27 '22 17:09 aheze

Happens in the slime demo too:

image

aheze avatar Sep 27 '22 18:09 aheze