Skip to content

Commit 769158d

Browse files
authored
Apply suggestions from code review
1 parent f8fe63c commit 769158d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

draftlogs/6780_fix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Fix `Cannot read properties of undefined (reading '0')` when the mouse moves to x=0 while dragging a rangeslider [[#6780](https://github.com/plotly/plotly.js/pull/6780)]
1+
- Fix `Cannot read properties of undefined (reading '0')` when the mouse moves to x=0 while dragging a rangeslider [[#6780](https://github.com/plotly/plotly.js/pull/6780)], with thanks to @david-bezero for the contribution!

src/components/rangeslider/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ module.exports = function(gd) {
225225
};
226226

227227
function eventX(event) {
228-
if (typeof event.clientX === 'number') {
228+
if(typeof event.clientX === 'number') {
229229
return event.clientX;
230230
}
231-
if (event.touches && event.touches.length > 0) {
231+
if(event.touches && event.touches.length > 0) {
232232
return event.touches[0].clientX;
233233
}
234234
return 0;

0 commit comments

Comments
 (0)