Comments (26)
I found the cause. If you set this value > 100%, Ueli starts to move when typing:
from ueli.
As I said this is a bug of electron/chromium. The window starts to move even if I hardcode the app not to move. Even Windows itself recommends not using custom scaling so I guess you have to find another solution because there is nothing I can do.
from ueli.
@khanhas Thank you for your research!
To be more precise: if you set the custom scaling value to a value that is not listed here...
...the window starts moving while typing.
@jonhil & @LevinFaber Did you set a custom scaling in Windows?
from ueli.
A workaround to this issue is to turn on "Remember window position" in settings. This stops the window from moving around when custom scaling is set.
from ueli.
Which Electron/Chrome bug is the relevant one so that we can vote on it?
Also, the workaround by waqashsn works beautifully well.
from ueli.
Haha wtf, I have never seen this before and I have litterally no idea what it could be. 😅 I can't reproduce your bug. Can you clone the repo and start ueli from the command line (instructions)? Maybe there is a clue in the console logs.
from ueli.
Same problem, Win10 Pro, latest release. Will add console logs if I get the time.
from ueli.
Maybe there is a bug when placing the window. Try to set alwaysShowOnPrimaryDisplay
to true
in the config file (~/ueli.config.json
).
from ueli.
I tried to set alwaysShowOnPrimaryDisplay
to true
and restartet ueli but it didn't change the inputwindow movement.
I also cloned the repo and startet ueli from the command line but the bug still existed and there was no info or error in the console. Or is there defined logging location?
from ueli.
At the moment there is only console logging.
from ueli.
Ok. Then this is all I got from the console:
λ yarn start
yarn run v1.7.0
$ ./node_modules/.bin/electron . --enable-logging
Batchvorgang abbrechen (J/N)? j
I opened multiple programs but the movement bug was consistent. Sorry for not having more info.
from ueli.
Unfortunately I have no clue what it could be 😢
from ueli.
No Problem 😉
Sadly the newest 5.0.0 update doesn't solve the bug.
But I'll keep you informed maybe it'll disappear magically with another update 😋
from ueli.
I added this to known bugs.
from ueli.
@oliverschwendener oh yeah I used a custom value there and forgot to set it back :P
changed it to 100% and everything is working perfekt again 👍 thanks!
from ueli.
Allright! I am closing this issue because this seems to be a bug in chromium or electron. Once again, big thanks to @khanhas for the research!
from ueli.
I am having this issue still. Is there any way that you guys can hardcode the app to not move? I need to have to the custom scaling to actually see my laptop screen and not to have it super big.
from ueli.
@oliverschwendener Any thoughts on my last comment?
from ueli.
@Zangoran I'm sorry, at the moment there is nothing I can do because this is a bug in electron/chromium.
from ueli.
@oliverschwendener This might be a stretch, but is there a way where you can add an option to hardcode the x and y value as a setting so it can't move?
from ueli.
Experiencing this bug as well. Turning on "Remember window position" does not seem to fix the issue. Haven't seen this in any other Electron app either.
from ueli.
@laxu Do you have custom UI scaling activated in Windows?
from ueli.
@laxu Do you have custom UI scaling activated in Windows?
I do, 120% custom scaling.
from ueli.
I don't know if there is a bug report for this on electron yet.
Here is what I tested on electron 10.1.4:
import { app, BrowserWindow } from "electron";
import { join } from "path";
let browserWindow: BrowserWindow | null;
app.on("ready", startApp);
app.on("window-all-closed", () => app.quit());
function startApp() {
createBrowserWindow();
}
function createBrowserWindow() {
browserWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
},
});
browserWindow.loadFile(join(__dirname, "..", "views", "main.html"));
setInterval(() => repositionWindow(), 1000);
}
function repositionWindow() {
if (browserWindow) {
browserWindow.center();
}
}
I created an empty app that repositions the window every second on the center of the screen by calling center()
method on the BrowserWindow
. And everytime this happens the window starts to move. This only happens if a custom scaling value is set. So I guess this is a bug on electron's side.
from ueli.
Ok I just managed to reproduce this issue even without custom UI scaling.
from ueli.
Let's track this issue here: #515
from ueli.
Related Issues (20)
- QUESTION: Can I write my own extensions? HOT 1
- Not working with MacOS Sonoma. HOT 1
- Converter show error - where are logs? HOT 5
- Cannot convert currency HOT 1
- Question: Workflows > commandline tooling > how auto close terminals HOT 8
- [Bug] Typing "sign" results in one very strange suggestion HOT 2
- Chocolately package for 8.25.0 HOT 2
- Support for Function Key hotkeys HOT 3
- Multiple plugins not working - not showing any results HOT 6
- [Problem] Regarding Japanese input in the Mac version HOT 1
- bug: Incorrect Tray Icon Color in Light Theme on Windows HOT 3
- Request for design Improvement HOT 3
- [Bug]Unexpected motion when typing HOT 9
- Can't change everything search settings HOT 1
- It Wont download HOT 2
- [Docs] Workflow examples/ideas HOT 2
- [Feature Request] Change default file explorer HOT 1
- [Feature Request] add option to search Arc Browser favorites HOT 1
- The currency converter stopped working HOT 3
- [Feature Request] add an option to search tray icons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ueli.