gpt4 book ai didi

Tauri.js - Click through the window(Tauri.js-在窗口中单击)

转载 作者:bug小助手 更新时间:2023-10-25 15:29:57 28 4
gpt4 key购买 nike



To explain simply what I would like to do, I would like to create a window that would behave like an overlay, and that would let me click through it without interrupting the click (while superimposing itself on the other elements) (this is not very clear, so here is an example)

为了简单地解释我想要做的事情,我想创建一个行为类似于覆盖的窗口,这将允许我在不中断点击的情况下通过它(同时将自己叠加在其他元素上)(这不是很清楚,所以这里是一个例子)


exemple

举例说明


The red border is the limit of the tauri window, I would like to be able to click for example on my code and continue to write without the focus being taken by the tauri window

红色边框是Tauri窗口的限制,我希望能够在不被Tauri窗口占据焦点的情况下,例如在我的代码上点击并继续编写


I already tried to use setIgnoreCursorEvents from https://tauri.app/fr/v1/api/js/window/ but I think it has nothing to do / And it doesn't work :(

我已经尝试使用https://tauri.app/fr/v1/api/js/window/中的setIgnoreCursorEvents,但我认为它与此无关/并且不起作用:(


更多回答

Is this an issue of html/JavaScript? Doesn't feel like a tauri issue

这是一个关于html/javascrip的问题吗?感觉不像是金牛座的问题

Try with css on main body of the frontend. { pointer-events: none; }

尝试在前台的主体上使用css。{指针-事件:无;}

优秀答案推荐

There apparently isn't any solution directly provided by Tauri.
However, it seems doable with some custom OS code, more information is available in a github issue.

显然,Tauri没有直接提供任何解决方案。然而,使用一些定制的操作系统代码似乎是可行的,更多信息可在GitHub问题中获得。


更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com