Skip to content
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

Resize cursor appears when scale is locked. #2351

Closed
vitalniko opened this issue Jul 20, 2015 · 3 comments
Closed

Resize cursor appears when scale is locked. #2351

vitalniko opened this issue Jul 20, 2015 · 3 comments

Comments

@vitalniko
Copy link

The resize cursor appears over controls when the resize options are locked.
Steps to recreate:
Run the following code

canvas =  new fabric.Canvas('canv');
var txt = new fabric.Text('Text string', {lockScalingX:true,lockScalingY:true,top:30,left:30});
canvas.add(txt);

https://jsfiddle.net/vital_n/205n1qfe/1/

Mouse over any of the corner controls, see the "resize" cursor hiniting that the resize is available.

Expecting result
There shouldn't be a resize cursor over a control when the scale of the object is locked.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@asturur
Copy link
Member

asturur commented Jul 20, 2015

Yes you are right, cursor should not appear as resize.
You should consider disabling the corners completely if you do not intend to scale the object nor on X or Y.

@vitalniko
Copy link
Author

Yes i tried to disable the controls but the frame looks more elegant with corners )

@asturur
Copy link
Member

asturur commented Apr 26, 2016

will give a check for custom corner icons on control customization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants