hugolabe / Wike

Wikipedia Reader for the GNOME Desktop
https://hugolabe.github.io/Wike/
GNU General Public License v3.0
252 stars 33 forks source link

No preview popup on devices where both touch and mouse input are present #59

Closed CharoSW closed 2 years ago

CharoSW commented 2 years ago

On version 1.5.7 the preview popup doesn't seem to work, i seem to only get tooltips instead of the previews. I noticed it on the flatpak version but also looked at the native fedora package and couldn't them there either

hugolabe commented 2 years ago

It works fine for me. Version 1.5.7 from Flathub.

Try deleting the data folder and then re-enable the preview popups in Preferences.

Data folder in flatpak versión: ~/.var/app/com.github.hugolabe.Wike

CharoSW commented 2 years ago

So that unfortunately didn't work but it did lead me to look into it a bit deeper. The true problem seems to be the fact that I have an external touch screen and the preview popups dont like that. If the touch screen is connected when I start Wike then I get just tooltips, if i disconnect the touchscreen and then start Wike the previews are there. The behaviour makes some sense in the fact that touchscreens can't have a hover but unintentionally creates a hole when you have a device with both touch and mouse/pointer input. I will change the bug title to reflect this new angle .

Edit: forgot to mention I have a linux tablet that i installed flathub wike on to be sure. No previews with an external mouse plugged in

hugolabe commented 2 years ago

I don't think I can do anything about that, since the rendering of the page is done by WebKit.

Page Previews are a feature of Wikipedia itself. When they are deactivated in preferences, the only thing that Wike does is inject a css rule in the web view to hide those elements.

aunetx commented 11 months ago

I have this issue too, @hugolabe do you think it is worth it for me to open an issue for webkit?

hugolabe commented 11 months ago

First try if the same thing happens to you with GNOME Web, which also uses WebKit...

aunetx commented 11 months ago

Yeah it does happen too, but I still have not isolated the reason (i guess it's a bug with the mouseenter event)