Mantis icon indicating copy to clipboard operation
Mantis copied to clipboard

Enhancement Request: Catalyst Rotation Experience

Open rickshane opened this issue 11 months ago • 4 comments

Well-known image apps handle the Rotation UX differently on a Mac vs. an iOS device.

On a Mac:

  • The rotation control is typically hidden, but inputs are still sent to the control.
  • There are cursor rectangles in the view that change the cursor being displayed depending on the region of the screen.
  • For rotation, there is a single cursor image that may be transformed or pre-rendered as separate images for the 8 specific regions around the crop box: top, bottom, left, right, upper left, upper right, lower left, and lower right.
  • Touch events in the 8 regions must be translated in to input to the RotationDial.

rickshane avatar Mar 21 '24 04:03 rickshane

@rickshane Thanks for the suggestions! I am not familiar with Mac apps. If you can give me some example or post some screenshots/videos that would be very helpful.

guoyingtao avatar Mar 21 '24 14:03 guoyingtao

Here is a video showing the hidden rotation control and cursor changes using cursor rects:

https://github.com/guoyingtao/Mantis/assets/5288729/38883300-49c6-4af5-81d6-9641b6252464

rickshane avatar Mar 21 '24 22:03 rickshane

Here is Apple Reference page which discusses how to set system cursors in Catalyst:

https://developer.apple.com/documentation/appkit/nscursor

It looks like cursor rects as used in AppKit are not supported in Catalyst. This will probably need to get solved with a Hover Gesture Recognizer:

https://developer.apple.com/documentation/uikit/uihovergesturerecognizer/

rickshane avatar Mar 22 '24 05:03 rickshane

@rickshane Thanks for uploading the example video and posting reference links. I will work on it when I get more time.

guoyingtao avatar Mar 22 '24 15:03 guoyingtao