Comments (9)
OK I've managed to reproduce the bug, but in a different procedure:
- Open ThatOrThis menu;
- Select an option by pressing TAB on keyboard, the tooltip will appear around mouse cursor;
- Move cursor away or to another option, erratic behavior begins.
My guess is that, by using a touchpad (or maybe some touchpads, as mine works fine) some kind of implied keyboard focus is applied onto the option button. Then the cause of problems surfaced: Minecraft treats keyboard focus the same as mouse hovering (net.minecraft.client.gui.widget.ClickableWidget#isHovered
), so there can be at most two buttons in a "hovered" state, causing chaos. I'm working on a fix.
from thatorthis.
Okay, maybe by checking mouse poisition against list entries instead of desynchronized button coordinates, we can "force" the tooltip to show only when wanted. Try this snapshot: [email protected] (unzip before installing).
from thatorthis.
v0.2.5+1.17 is out, containing the fix. Closing this issue.
from thatorthis.
This bug is funny indeed, however I can't reproduce it with your rules.json, whether with a touchpad or a mouse.
From your video it seems that, if a tooltip is displaying, and the button providing it just scroll out of view, the tooltip will refuse to disappear. Is this understanding correct?
Also, please try to reproduce the bug without any mods other than those ThatOrThis depends on.
from thatorthis.
Absolutely right.
button providing it just scroll out of view, the tooltip will refuse to disappear
I disabled all mods (deleted the files and disabled them), but the situation remained the same:
https://youtu.be/TZeGjirvktM
https://youtu.be/ZVQhFWa7j7c
from thatorthis.
Try this snapshot: [email protected] (unzip before installing). Tooltips for keyboard focused buttons are now not shown. Mouse hovering works as normal.
from thatorthis.
The result remained the same. However, I do not think that such a small feature is worth so much attention if it is so difficult to detect. If you want, you can close this issue.
By the way, I think this is a simple solution to add small delay after hovering over the button to display the tooltip.
from thatorthis.
Frankly I don't know what else could go wrong with these tooltips... can't even confirm whether the problem is on my side or not. I'll keep this issue open, but further investgation can't be done without some help.
from thatorthis.
Now tooltip works as it should
from thatorthis.
Related Issues (20)
- Add a search bar.
- Right-click config for mods.
- Preventing loading from certain directories HOT 1
- Publish to Curseforge
- Example modpack HOT 1
- Simpler implementation HOT 2
- Fabric Loader v0.12.x compatibility HOT 11
- Make a rule depend on rule conditions
- Boolean rule type
- Add alias mod ids to directory without changing folder structure HOT 1
- Line break bug in the tooltip (ยงr)
- It's seems that quilt have api for load extra mods HOT 5
- Why the mod injector is loaded by reflect? HOT 2
- How about using YACL for config screen HOT 1
- Add a modpack settings button. HOT 6
- Stuffs to do HOT 3
- Dev option to crash on invalid rules.json HOT 3
- Make ThatOrThis a library? HOT 4
- Server-side config GUI?
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 thatorthis.