electron-transparency-mouse-fix icon indicating copy to clipboard operation
electron-transparency-mouse-fix copied to clipboard

click-through not possible before click-on hovered

Open rgk85 opened this issue 5 years ago • 10 comments

Hi,

I implemented the script and it works great, except for 1 thing. It doesn't seem like the click-through is possible before you have hovered a click-on, initially i thought it was my implementation of the script but after running the demo i'm facing the same issue.

Is there a way around this so that click-through is upon startup actually click-through ?

In this image i havn't had my mouse over anything yet but the click-through, yet i'm not able to select the underlying text image

After mouse over on the click-on element i can select the underlying text under the click-through area. image

rgk85 avatar Mar 04 '19 14:03 rgk85

I'm working on a project that uses this library again, so I'll revisit the code one of these days and try to find the bug. Thanks for the clear explanation.

If you're eager to fix it before that time, the built in log option may help you figuring out when setIgnoreMouseEvents gets triggered.

toonvanvr avatar Mar 09 '19 01:03 toonvanvr

I'm revisiting this issue now I've got access to macOS. Didn't forget you! 😎

toonvanvr avatar Jun 09 '19 10:06 toonvanvr

The initial pointer position can be retrieved from an onload event. Will be fixed in v2.

toonvanvr avatar Oct 12 '19 17:10 toonvanvr

Fixed in v2 which is too early to release right now.

33747845afc0fe4a9164392e397fa58f546d5ef1

toonvanvr avatar Oct 12 '19 17:10 toonvanvr

Is this fix included in the current release on npm, 1.0.0-rc.1?

Jip-Hop avatar Dec 25 '19 16:12 Jip-Hop

bump

shash7 avatar Mar 26 '20 22:03 shash7

I didn't realize this lib was still in use until I checked npm. Not sure if I'll have the time to verify everything works. Bump again if I don't respond after this weekend.

toonvanvr avatar May 06 '20 01:05 toonvanvr

I'm working on making the library bugfree cross-platform with focus on macOS (as I may be using this for a hobby project) and Windows. My personal laptop currently runs Ubuntu 20.04 Budgie & Gnome, so they may be supported after a while too. Linux transparency/clickthrough bugs have been very irregular over the last years though, so don't count on them being supported in the end. I'm diving pretty deep into the Electron differences across platforms right now, so a v2 release may land by the end of next weekend as alpha.

toonvanvr avatar May 17 '20 23:05 toonvanvr

Hi @toonvanvr did v2 ever get any closer to release? I'm using this for a slow long term hobby project as well.

llaver avatar Jun 22 '21 19:06 llaver

@llaver I have picked up the code several times but quit the day after because I didn't really have a useful project to test it with. Kind of lacking motivation. Is your project open source? I'd love to see what people do with it. It may get me working on it again.

toonvanvr avatar Jun 25 '21 12:06 toonvanvr