-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block theme: Add drag handles to resize pattern preview (#650)
* Block theme: Add drag handles to resize pattern preview * Remove throttle and use separate `dragPos` variable This helps prevent the cursor from coming out of sync with the drag handle * Reduce max scaling width to 1400 Still larger than the 1200 preview width, but more realistic than 2400 * Run the resize handler when the drag change happens * Add a class while dragging, only block pointer events then * Ensure the resize happens on toggles * Update styles * Hide text so it's only read when on the relevant button * Hide drag buttons on small tablet/phone sizes
- Loading branch information
Showing
3 changed files
with
172 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters