-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove Haptic Feedback on Launch (#916) #976
fix: Remove Haptic Feedback on Launch (#916) #976
Conversation
We need to set the sidebar width to what the user had it set to on init so user preferences are remembered across app restarts. Maybe we could do a check to see if this setting is equal to the snap with and not resize if it is. Edit: It appears that we are not currently persisting the users preferred width but I think that is why this code was written, so that we can add the preferred width here when that logic is put in place. |
From what I've seen, for now, it seems that it's set to the same value anyway, so that's why I did the changes in this way. |
That is fine, we just need to keep this in mind in #917. |
This logic was not there before the snap and haptic were added, so I thought this change would work, but I see how this is needed in the future.
So the idea would be: if the user's preferred width is the snap width, then we skip the init. |
I probably can’t do it right now, so my recommendation is to merge this for now and keep tracking this in other issues. I can add a |
That is the thought, yes. @Code-DJ may need to do this as he is working on this now. Maybe just comment out the function call with a todo comment mentioning this. |
I've added a TODO comment mentioning this. |
Perfect! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tracking this down!
Description
viewWillAppear
inCodeEditSplitViewController
that resizes the sidebar when launches. This function is not needed and the resize will trigger thesplitView
, which triggers the haptic feedback.Related Issue
Checklist