File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments