Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboErikG committed Feb 21, 2025
1 parent bef0219 commit 54b66ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/field-bitmap/src/field-bitmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,10 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
}

/**
* Checks if a down event is on a pixel in this editor and if it is starts an
* edit gesture.
*
* @param e
* @param e The down event.
*/
private onPointerStart(e: PointerEvent) {
const currentElement = document.elementFromPoint(e.clientX, e.clientY);
Expand All @@ -486,8 +488,10 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
}

/**
* Updates the editor if we're in an edit gesture and the pointer is over a
* pixel.
*
* @param e
* @param e The move event.
*/
private onPointerMove(e: PointerEvent) {
if (!this.pointerIsDown) {
Expand Down Expand Up @@ -536,7 +540,7 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
* Resets pointer state (e.g. After either a pointerup event or if the
* gesture is canceled).
*/
private onPointerEnd(e: PointerEvent) {
private onPointerEnd() {
this.pointerIsDown = false;
this.valToPaintWith = undefined;
}
Expand Down

0 comments on commit 54b66ef

Please sign in to comment.