Adopt CharSizeService in MouseHelper

This commit is contained in:
Daniel Imms
2019-06-08 15:20:03 -07:00
parent 38bb122bbd
commit 6246bb5026
10 changed files with 42 additions and 49 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ export class SelectionManager implements ISelectionManager {
* @param event The mouse event.
*/
private _getMouseBufferCoords(event: MouseEvent): [number, number] {
const coords = this._terminal.mouseHelper.getCoords(event, this._terminal.screenElement, this._charMeasure, this._terminal.cols, this._terminal.rows, true);
const coords = this._terminal.mouseHelper.getCoords(event, this._terminal.screenElement, this._terminal.cols, this._terminal.rows, true);
if (!coords) {
return null;
}