Rotation #5488
Replies: 1 comment
-
Posted at 2022-12-07 by @gfwilliams Yes - you can use The screen won't automatically swap back when the next app loads (since it's set up so left-handed users can permanently keep their watch in that state), so you'll need to implement a handler for the Posted at 2022-12-07 by Hank OK, will look into it, thanks a lot! Posted at 2022-12-07 by Hank As there is no g.getRotation, how do I determine the current set rotation? Posted at 2022-12-07 by @gfwilliams I don't think you can - I guess the question is why do you need to? Can't you keep track yourself? Posted at 2022-12-07 by Hank Yes, I guess I could. I'll let this as is for now. Maybe I'll add a toggle for BJS1 later.
Actually now that I tried it out on the watch I find it better to not reset this when exiting. It's a neat feature to change global orientation quickly :) Posted at 2022-12-07 by Serj Why i need to 90° convenient rotation: Posted at 2022-12-08 by Hank @gfwilliams could you do me a favor and revert this whole PR? Also I'm really wondering why the watchface is still loaded when the launcher is shown. How do I kill my Not that familiar with git and I'm afraid I would break something. I now discovered the problem that I cannot use the launcher anymore. Did not notice that before. Will work on this eventually but for now I got no time :( Posted at 2022-12-08 by @gfwilliams Revert this PR? espruino/BangleApps#2369
You implemented the There's info on implementing/testing here: http://www.espruino.com/Bangle.js+Fast+Load Specifically handling stuff like drag is covered here: http://www.espruino.com/Bangle.js+Fast+Load#event-handlers Although really for drag you should be using Best bet is just to not have the Posted at 2022-12-08 by Hank
Yes, please! Posted at 2022-12-08 by Hank PS: I will do the revert. Never mind. Sorry for any inconvenience. Posted at 2022-12-11 by Hank I attached my current code. Current log shows:
How do I resolve this? However, development is very difficult for me as I do not understand certain things. E.g. when I want to check the interaction between the watchface and the loader, the easiest would be to just upload my watchface to the storage. But when I do that via IDE, I get strange errors from the watchface that I don't get when it is uploaded to RAM:
Attachments: Posted at 2022-12-11 by @thyttan Regarding Without diving deep into the code, I suspect you can solve the issue by wrapping Regarding I think I remember Posted at 2022-12-12 by Hank I now changed it to
Now, the loader shows up, but the Listener seems to be still in place. Posted at 2022-12-12 by @thyttan There shouldn't be quotation marks around Try: Posted at 2022-12-12 by Hank Then I actually get
Posted at 2022-12-12 by @thyttan Searching the repository it seems to me that that logic works for other apps: https://github.com/espruino/BangleApps/search?q=%21%3D%3Dundefined Does it work if you use EDIT: Wait, drop the
Posted at 2022-12-12 by Hank
gives me
Posted at 2022-12-12 by @thyttan Ok, try initiating
Posted at 2022-12-12 by Hank I actually removed the function as it was obsolete anyway - with the same result. Thanks for your patience! Attachments: Posted at 2022-12-12 by @thyttan Ok, and now it works? 👍 Posted at 2022-12-12 by Hank No, it doesn't. I get no error with the attached code. But the Listener isn't deleted. So it's basically the same as with the first try. I can load the watchface but when the launcher is called, the rotation is still happening on swipe... Posted at 2022-12-12 by @thyttan And if you go back to not using the if-statement now and just do as you did first like so:
? Posted at 2022-12-12 by Hank Then I get
Posted at 2022-12-12 by @thyttan hmm, try initiating Posted at 2022-12-12 by Hank Same result. I tried out to put the whole Bangle.setUI({ block underneath. Posted at 2022-12-12 by @thyttan Well, I don't think I have any more suggestions then sadly :/ :p Posted at 2022-12-12 by Hank YAY, now it worked. That is soooo strange!
at the top of my code.
shows "true". When I remove the check fpr BJS2, it works. Another problem is that I get
When leaving the launcher despite i do load and show widgets at the end of my code. Posted at 2022-12-12 by @halemmerich You have your For the "has no widgets" message, maybe you need to update the Posted at 2022-12-12 by Hank I actually also tried to check for
and it didn't work. Got it with the settings. It seemed to be necessary to assign the default clock again in the settings. Thank you all for those many hints! Posted at 2022-12-12 by @halemmerich
That will recheck if the clock has a Posted at 2022-12-13 by Hank @serj i was thinking of a config setting that allows you to set the rotation level to 180(default), disabled, 90 and 270. Posted at 2022-12-13 by Serj I think yes, thanks 👍 Is it possible to combine rotation with pattern through this application? https://banglejs.com/apps/?id=ptlaunch Posted at 2022-12-13 by @gfwilliams You can't do it for every app (at least not easily) because we don't have a standard way of redrawing the screen defined - once the screen is rotated we need to ask the app to redraw, and there's no way of doing that at the moment Posted at 2022-12-15 by Fteacher I'm glad you added the option to switch off the rotation in the settings, the display was never in the correct position for me to watch it. Still, I used the settings to put rotation on "off", but it actually works anyway :/. Posted at 2022-12-16 by Hank Currently the rotation is set back to 0° when set to "off". I will not touch rotation settings when set to "off" from the next version on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-12-07 by Hank
Just out of curiosity, is there a way to rotate the screen 180° and keep it rotated until the watchface is unloaded (e.g. when the loader shall show up)?
I'm tempted to add a feature to my watchface that if it's unlocked you would swipe up to roate the whole screen to show the time to another person and swipe it again to have the normal mode.
Beta Was this translation helpful? Give feedback.
All reactions