Sie sind nicht angemeldet.


Donnerstag, 14. Juni 2018, 22:54

parent=stage focus issue?

Dear Klaus!
I just tried to create a plugin that is displayed alongside the panorama, instead of over the image, by setting the plugins parent to stage. It all looks good, but when I put an input element in this plugin, it's very hard to get focus in it, meaning if I just single-click it, nothing happens, no matter how many times I try. If I double click, again nothing happens. But if I start clicking like mad, sometimes it finally gets focus. Please note this only happens with type=text inputs, buttons work just fine.

I'm pretty sure this has something to do with the parent=stage setting, because if I remove that line and the plugin appears inside the area, this behavior stops immediately.

Is this a bug perhaps? Any workarounds?

Update: did some search on the forum and found out that there has been some similar issues, but the topics are dated back to 2011, and it was still in the flash-based viewer, so I guess that's a completely different animal. In any case I tried the setting parent=bglayer aswell, but the same issue persists, in fact it's even worse, this time I wasn't able to get the focus in the input at all, no matter how many times and how fast I tried to click *tongue*

Update2: looking around in the debugger it seems that there is some kind of internal krpano (mousedown) event listener preventing the textfield from getting the focus, when I remove that it starts working immediately.

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »webseta« (14. Juni 2018, 23:17)


Dienstag, 19. Juni 2018, 17:13

Klaus, could you please take a look at this?


Donnerstag, 16. August 2018, 02:27

Hi, this is still an issue, pls reply if possible.