Languages

Menu
Sites
Language
Losing Document events after window.open
I am opening a link to an outside URL with window.open(). When I go back to the app buy clicking on the Hardware button, the Document events are no longer firing. I have to exit the app and start it again for events to work. The specific event not firing is "rotarydetent", which I use to allow the user to scroll up and down the content. The Hardware key uses window.history.back() and I've also tried tau.back(). This is on Tizen 3.0
Edited by: Raphael Zarate on 01 Dec, 2018

Responses

2 Replies
André Reus

Hi, 

In the js file call a method like this init(); and initiate all the events listener on this method.... it will work i think. 

 

Raphael Zarate

That doesn't fix anything.  My "rotarydetent" event is still there on the document.  Looks like whatever event gets fired internally by tizen is not working anymore.  The only way for the event to get wired up again is to use "_self" in the window.open params. This is not a solution because navigating backwards causes the whole site to do a hard refresh and the user is no longer on the same page.

Any other help on the matter is much appreciated.