polotno-project / polotno-board

Roadmap and bug-tracker for the Polotno project.
https://polotno.dev/
9 stars 1 forks source link

Calling addElement changes the current element selection, even if selectable=false #35

Closed JohnKiller closed 2 years ago

JohnKiller commented 2 years ago
page.addElement({
    type: 'svg',
    src: "/test.svg",
    keepRatio: false,
    x: 0,
    y: 0,
    width: 100,
    height: 100,
    selectable: false,
    alwaysOnTop: true,
    showInExport: false,
});

This will select the element automatically even if it shouldn't.

lavrton commented 2 years ago

You are right. This is a bug.

lavrton commented 2 years ago

Should be fixed with polotno@0.33.2.