Roman Pominov a74dbe06d3 Fix bugs with creating component by DnD to canvas (#1510)
## Description

https://discord.com/channels/955905230107738152/1098959267396059228

There were two bugs:

1. Same as in
https://github.com/webstudio-is/webstudio-builder/pull/1483 setState
didn't work correctly after React update
2. Scrub used to call `onStatusChange("idle")` at unmount (now fixed).
We use scrub for canvas resize, and restore pointer events when status
changes to "idle". But we also unmount scrub on DnD start. So on DnD
start we ended up with pointer events turned on.

## Steps for reproduction

1. DnD of components to canvas should work well now
2023-04-21 18:03:58 +03:00
2022-07-04 19:59:42 +02:00
2023-03-02 11:05:44 +01:00
2023-03-29 18:59:46 +07:00
2022-06-22 15:00:00 +02:00
2022-03-13 04:22:21 +00:00
2023-04-16 15:33:03 +07:00
2023-02-14 11:15:24 +01:00
2023-04-18 20:17:16 +04:00

Webstudio Builder

Webstudio Builder is a NoCode Visual Tool inspired by Webflow. It is the place where you can build your site or app visually.

Contributing

Don't hesitate to reach out of you have questions around contributing to the project.

Contributing guide

Community

Twitter

Discussions

Discord

Languages
TypeScript 98.9%
PLpgSQL 0.5%
CSS 0.3%
Shell 0.2%
JavaScript 0.1%