Skip to content

Commit

Permalink
Only start multi selection from inside the content (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Jun 15, 2017
1 parent c42a443 commit a497679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class VisualEditorBlock extends wp.element.Component {

onPointerDown() {
this.props.onSelectionStart();
this.props.onSelect();
}

render() {
Expand Down Expand Up @@ -253,8 +254,6 @@ class VisualEditorBlock extends wp.element.Component {
ref={ this.bindBlockNode }
onKeyDown={ this.removeOrDeselect }
onFocus={ this.onFocus }
onMouseDown={ this.onPointerDown }
onTouchStart={ this.onPointerDown }
onMouseMove={ this.maybeHover }
onMouseEnter={ this.maybeHover }
onMouseLeave={ onMouseLeave }
Expand Down Expand Up @@ -293,7 +292,8 @@ class VisualEditorBlock extends wp.element.Component {
<div
onKeyPress={ this.maybeStartTyping }
onDragStart={ ( event ) => event.preventDefault() }
onMouseDown={ this.props.onSelect }
onMouseDown={ this.onPointerDown }
onTouchStart={ this.onPointerDown }
>
<BlockEdit
focus={ focus }
Expand Down

0 comments on commit a497679

Please sign in to comment.