Browse Source

remove cursor style when we want normal cursor.

repro-req-an-frame
Dan Walmsley 3 years ago
parent
commit
eb1c1971f1
  1. 7
      src/Web/Avalonia.Web/webapp/modules/avalonia/input.ts

7
src/Web/Avalonia.Web/webapp/modules/avalonia/input.ts

@ -159,7 +159,12 @@ export class InputHelper {
}
public static setCursor(inputElement: HTMLInputElement, kind: string) {
inputElement.style.cursor = kind;
if(kind == "pointer"){
inputElement.style.removeProperty("cursor");
}
else {
inputElement.style.cursor = kind;
}
}
public static setBounds(inputElement: HTMLInputElement, x: number, y: number, caretWidth: number, caretHeight: number, caret: number) {

Loading…
Cancel
Save