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

Non-Selectable objects still get selectable eventually #38

Open
southernangel opened this issue Mar 8, 2022 · 2 comments
Open

Non-Selectable objects still get selectable eventually #38

southernangel opened this issue Mar 8, 2022 · 2 comments

Comments

@southernangel
Copy link

I've created a canvas object editor where some objects are should be fixed and non-selectable and therefore NOT part of the undo-redo process but not even using the extraProps options to the canvas, they still eventually get selectable and therefore deletable, allowing the state of a totally empty canvas

Is is possible to cancel the adding of particular objects to the stack in the history:append event handler?

@alimozdemir
Copy link
Owner

Have you tried like this? It is working

        var rect2 = new fabric.Rect({
            width: 100, height: 100,
            top: 40, left: 40, fill: 'red',
            selectable: false
        });

@southernangel
Copy link
Author

Thanks for answering. I've got the selectable: false attribute in the object. I'll have to reinstall and test it again, it's been a while

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

No branches or pull requests

2 participants