Skip to content

Commit

Permalink
Improve image drag rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 28, 2024
1 parent 690eb9a commit c530d10
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
}
}

img:not([draggable]) {
// Images are draggable by default, so disable drag for them if not explicitly
// set. This is done so that the block can capture the drag event instead.
.wp-block img:not([draggable]) {
pointer-events: none;
}

0 comments on commit c530d10

Please sign in to comment.