polotno-project / polotno-board

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

Change which object is initially selected on a page when editor loads #24

Closed vanch3d closed 1 year ago

vanch3d commented 3 years ago

When the editor loads with a template or elements added to the active page, the last element in the list is selected by default. While not a problem in itself , it creates a bit of unexpected visual cues (border, handles, tools in top bar)

Notes:

lavrton commented 3 years ago

I was thinking that autoselect is the best default, because it most of the cases you want to have selected object, right after you added it.

If you don't want that behavior, you can select different objects.

content.forEach((e) => store.activePage.addElement(e));
// deselect all
store.selectElements([]);