-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue during resize on Retina display #2554
Comments
What version are you using? |
I'm using 1.6.0-rc.1. Do you remember which commit it was? |
I was wrong with commit for imageSmoothingEnabled. The problem is similar anyway, it looks like that retinaScaling is just a dimensions + scale hack.
|
@kangax i think that in renderAll when i call contextContainer.setTransform i'm killing retina scaling because i'm overriding the previous scaling. |
Issue with retina display and toDataURL #2562 The retina display support is a canvas resize + scale algorithm. When we resize the canvas OR we set a transform in the canvas, the retina scaling hack get lost. |
Sounds reasonable, let's try it. |
@mbaudry can you try your retina scaling problem with this: https://www.deltalink.it/andreab/fabric/fabric.js please accept https warning. Thank you. |
Hello ! I tried with your version of fabric, but I still have the problem on retina display. |
So after setting width or height of canvas, retina scaling disappear? |
No problem, if I can help :) I call |
@mbaudry i updated the setDimension function to re add retina scaling. https://www.deltalink.it/andreab/fabric/fabric.js regards. If you have an ipad / tableg and you want try also the pinch gesture... |
@asturur The resize works well now ! If I use a pinch gesture, even only a little bit, the canvas object becomes huge, it resizes to a gigantic size straight away |
yes i noticed, it is like the gesture is continuos and zoom, zoom, zoom.... is not istantaneous, you can see it zooms continuosly. only thing i can do is build a 1.5.0 and check how it behaved before. i need a debug setup for gestures. we changed scale logic to accomodate generic transforms but i do not see any big changes that should break transform. |
Hello,
I have an issue on retina display when I resize a canvas. The objects become blurred. I fixed this issue by calling the
_initRetinaScaling
each time I resize the canvas. Is this a good solution or do I missed some internal options?Thanks you
The text was updated successfully, but these errors were encountered: