8
0
Prechádzať zdrojové kódy

Temporally remove selection stop on mouseleave.

Maciej Gołaszewski 5 rokov pred
rodič
commit
ed3a1e6fe9

+ 7 - 7
packages/ckeditor5-table/src/tableselection/mouseselectionhandler.js

@@ -86,9 +86,9 @@ export default class MouseSelectionHandler {
 	 * @private
 	 */
 	_handleMouseMove( domEventData ) {
-		if ( !this._tableSelection.isSelecting ) {
-			return;
-		}
+		// if ( !this._tableSelection.isSelecting ) {
+		// 	return;
+		// }
 
 		const tableCell = this._getModelTableCellFromDomEvent( domEventData );
 
@@ -126,11 +126,11 @@ export default class MouseSelectionHandler {
 	 * @private
 	 */
 	_handleMouseLeave() {
-		if ( !this._tableSelection.isSelecting ) {
-			return;
-		}
+		// if ( !this._tableSelection.isSelecting ) {
+		// 	return;
+		// }
 
-		this._tableSelection.stopSelection();
+		// this._tableSelection.stopSelection();
 	}
 
 	/**