Comments (6)
Hey @cocopon !
Fantastic library, thank you for all the work you've put into this!
Just wanted to drop a note letting you know that zoom is broken again for sliders. But, it's not a big issue, so that's why I didn't create a new issue for it.
I have pretty bad eyesight, so I wanted to make my tweakpane 150% bigger. After zoom not working, I tried transform scale, which does work, but messes up the layout of my page. I dug into the theming and found --tp-blade-unit-size
but that only adjusted the height, not the text size.
Leaving this here in case it's helpful for anyone else:
I was able to get everything to a nice place by using these styles:
<style>
:root {
--tp-blade-unit-size: 24px;
}
.tp-rotv {
font-size: 14px !important;
}
.tp-lblv_v {
min-width: 50% !important;
}
</style>
from tweakpane.
But if you going to use this don't forget to set transform-origin: top right;
Yes, that behavior is by design.
Another downside of using transform: scale() is that empty space appears at the bottom of every folder - https://www.screencast.com/t/PhOyB3H9
This seems a bug that should be fixed so I created a issue about this: #31
from tweakpane.
@cocopon Fixed, works like a charm. Thank you!
from tweakpane.
zoom
is non-standard feature: https://developer.mozilla.org/en-US/docs/Web/CSS/zoom
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
For example, Firefox doesn't support this property:
https://caniuse.com/#feat=css-zoom
This problem causes because getBoundingClientRect()
(used in PointerHandler) returns a value that isn't applied zoom
. This behavior has been already reported to each bug tracker several years ago but has not been fixed yet:
- https://bugs.webkit.org/show_bug.cgi?id=77998
- https://bugs.chromium.org/p/chromium/issues/detail?id=967097
Maybe I can add a workaround for this problem, but I'm worried about doing it because:
- This property isn't standard
- So it may change the behavior in the feature
How about using transform: scale(1.5)
instead of zoom: 1.5
?
from tweakpane.
Thanks for quick reply.
Yes, steppers work with transform: scale(1.5)
so it could be a quick workaround. But if you going to use this don't forget to set transform-origin: top right;
otherwise you will have to adjust position panel manually by setting top
and right
. With zoom it was fine.
Another downside of using transform: scale()
is that empty space appears at the bottom of every folder - https://www.screencast.com/t/PhOyB3H9
from tweakpane.
@vforsh Fixed a bug #31 in the latest release 1.3.1. Please try it!
from tweakpane.
Related Issues (20)
- Visiting v3.x documentation is showing 404 page not found HOT 2
- Having a hard time with plugin development in vanilla js HOT 4
- Soft min/max values.
- Pointer lock when dragging.
- `view` string autocomplete. HOT 2
- How to remove event listeners? HOT 3
- color panel is displaying incorrectly HOT 4
- Bug with Tab when we have controls after the Tab HOT 2
- Cannot read properties of undefined (reading 'valueController') HOT 3
- Theme builder HOT 8
- SVGs Not Scaling Correctly HOT 4
- color as array of values 0-255 HOT 1
- [feature request] tabs: html elements in title HOT 2
- [feature request] tabs: vertical layout HOT 4
- Considering sponsorship for sustainable OSS development
- Please add a UMD library version again. HOT 5
- export folder -> import folder not working as expected HOT 3
- Numerical values passed as list of strings incorrectly treated as colors HOT 2
- Ability to manually select the binding view type HOT 4
- support for React, Vue, Svelte, Solid, Angular, etc, by making Custom Elements
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 tweakpane.