fffiloni commited on
Commit
80dae8a
1 Parent(s): c04d675

Update public/DrawHandler.js

Browse files
Files changed (1) hide show
  1. public/DrawHandler.js +4 -2
public/DrawHandler.js CHANGED
@@ -21,13 +21,15 @@ class DrawHandler {
21
  this.eraserRadius = 10;
22
 
23
  this.pencil_btn = createButton('<i class="fa-solid fa-pencil"></i>');
24
- this.pencil_btn.mousePressed(this.pickPencil.bind(this));
 
25
  this.pencil_btn.parent('left-panel');
26
  this.pencil_active = true;
27
  this.pencil_btn.addClass('tool-active');
28
 
29
  this.eraser_btn = createButton('<i class="fa-solid fa-eraser"></i>');
30
- this.eraser_btn.mousePressed(this.pickEraser.bind(this));
 
31
  this.eraser_btn.parent('left-panel');
32
  this.eraser_active = false;
33
  }
 
21
  this.eraserRadius = 10;
22
 
23
  this.pencil_btn = createButton('<i class="fa-solid fa-pencil"></i>');
24
+ this.pencil_btn.mousePressed(this.pickPencil.bind(this))
25
+ .attribute('title', 'Pick pencil');
26
  this.pencil_btn.parent('left-panel');
27
  this.pencil_active = true;
28
  this.pencil_btn.addClass('tool-active');
29
 
30
  this.eraser_btn = createButton('<i class="fa-solid fa-eraser"></i>');
31
+ this.eraser_btn.mousePressed(this.pickEraser.bind(this))
32
+ .attribute('title', 'Pick rubber');
33
  this.eraser_btn.parent('left-panel');
34
  this.eraser_active = false;
35
  }