@checksub_team/peaks_timeline 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksub_team/peaks_timeline",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -14419,17 +14419,19 @@ module.exports = function (Konva, Utils, SVGs) {
14419
14419
  indicator.setAttr('trueHeight', indicatorHeight);
14420
14420
  indicator.y(line.getY() + (line.lineHeight() - indicatorHeight) / 2);
14421
14421
  var self = this;
14422
- indicator.on('mouseover', function () {
14422
+ indicator.on('mouseenter', function () {
14423
14423
  indicator.getChildren().forEach(function (child) {
14424
14424
  child.fill(child.getAttr('selectedColor'));
14425
14425
  });
14426
14426
  self.draw();
14427
+ self._stage.container().style.cursor = 'pointer';
14427
14428
  });
14428
14429
  indicator.on('mouseout', function () {
14429
14430
  indicator.getChildren().forEach(function (child) {
14430
14431
  child.fill(child.getAttr('defaultColor'));
14431
14432
  });
14432
14433
  self.draw();
14434
+ self._stage.container().style.cursor = 'default';
14433
14435
  });
14434
14436
  indicator.on('click', function (e) {
14435
14437
  self._peaks.emit('lineIndicator.click', self._indicators[line.getId()], e.evt);
@@ -197,11 +197,12 @@ define([
197
197
 
198
198
  var self = this;
199
199
 
200
- indicator.on('mouseover', function() {
200
+ indicator.on('mouseenter', function() {
201
201
  indicator.getChildren().forEach(function(child) {
202
202
  child.fill(child.getAttr('selectedColor'));
203
203
  });
204
204
  self.draw();
205
+ self._stage.container().style.cursor = 'pointer';
205
206
  });
206
207
 
207
208
  indicator.on('mouseout', function() {
@@ -209,6 +210,7 @@ define([
209
210
  child.fill(child.getAttr('defaultColor'));
210
211
  });
211
212
  self.draw();
213
+ self._stage.container().style.cursor = 'default';
212
214
  });
213
215
 
214
216
  indicator.on('click', function(e) {