Skip to content

Commit 54b66ef

Browse files
committed
clean up comments
1 parent bef0219 commit 54b66ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

plugins/field-bitmap/src/field-bitmap.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,10 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
471471
}
472472

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

488490
/**
491+
* Updates the editor if we're in an edit gesture and the pointer is over a
492+
* pixel.
489493
*
490-
* @param e
494+
* @param e The move event.
491495
*/
492496
private onPointerMove(e: PointerEvent) {
493497
if (!this.pointerIsDown) {
@@ -536,7 +540,7 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
536540
* Resets pointer state (e.g. After either a pointerup event or if the
537541
* gesture is canceled).
538542
*/
539-
private onPointerEnd(e: PointerEvent) {
543+
private onPointerEnd() {
540544
this.pointerIsDown = false;
541545
this.valToPaintWith = undefined;
542546
}

0 commit comments

Comments
 (0)