Giter VIP home page Giter VIP logo

Comments (26)

khanhas avatar khanhas commented on May 18, 2024 2

I found the cause. If you set this value > 100%, Ueli starts to move when typing:
image

from ueli.

oliverschwendener avatar oliverschwendener commented on May 18, 2024 2

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024 1

@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...

image

...the window starts moving while typing.

@jonhil & @LevinFaber Did you set a custom scaling in Windows?

from ueli.

waqashsn avatar waqashsn commented on May 18, 2024 1

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.

stefnotch avatar stefnotch commented on May 18, 2024 1

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

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.

LevinFaber avatar LevinFaber commented on May 18, 2024

Same problem, Win10 Pro, latest release. Will add console logs if I get the time.

from ueli.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

Maybe there is a bug when placing the window. Try to set alwaysShowOnPrimaryDisplay to true in the config file (~/ueli.config.json).

from ueli.

jonhil avatar jonhil commented on May 18, 2024

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

At the moment there is only console logging.

from ueli.

jonhil avatar jonhil commented on May 18, 2024

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

Unfortunately I have no clue what it could be 😢

from ueli.

jonhil avatar jonhil commented on May 18, 2024

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

I added this to known bugs.

from ueli.

jonhil avatar jonhil commented on May 18, 2024

@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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

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.

zachthedev avatar zachthedev commented on May 18, 2024

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.

zachthedev avatar zachthedev commented on May 18, 2024

@oliverschwendener Any thoughts on my last comment?

from ueli.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

@Zangoran I'm sorry, at the moment there is nothing I can do because this is a bug in electron/chromium.

from ueli.

zachthedev avatar zachthedev commented on May 18, 2024

@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.

laxu avatar laxu commented on May 18, 2024

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

@laxu Do you have custom UI scaling activated in Windows?

from ueli.

laxu avatar laxu commented on May 18, 2024

@laxu Do you have custom UI scaling activated in Windows?

I do, 120% custom scaling.

from ueli.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

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.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

Ok I just managed to reproduce this issue even without custom UI scaling.

from ueli.

oliverschwendener avatar oliverschwendener commented on May 18, 2024

Let's track this issue here: #515

from ueli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.