Skip to content

Commit 8070ed5

Browse files
authored
Merge pull request #8014 from plotly/double-click-delay-500ms
Change default doubleClickDelay to 500ms (from 300ms)
2 parents 1d090e0 + e1c1ec3 commit 8070ed5

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

draftlogs/8014_change.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Increase default double-click delay threshold to 500ms (from 300) [[#8014](https://github.com/plotly/plotly.js/pull/8014)]

src/plot_api/plot_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var configAttributes = {
181181
},
182182
doubleClickDelay: {
183183
valType: 'number',
184-
dflt: 300,
184+
dflt: 500,
185185
min: 0,
186186
description: [
187187
'Sets the delay for registering a double-click in ms.',

src/types/generated/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16573,7 +16573,7 @@ export interface ConfigBase {
1657316573
doubleClick?: false | 'reset' | 'autosize' | 'reset+autosize';
1657416574
/**
1657516575
* Sets the delay for registering a double-click in ms. This is the time interval (in ms) between first mousedown and 2nd mouseup to constitute a double-click. This setting propagates to all on-subplot double clicks (except for geo and map) and on-legend double clicks.
16576-
* @default 300
16576+
* @default 500
1657716577
* Minimum: 0
1657816578
*/
1657916579
doubleClickDelay?: number;

test/jasmine/tests/dragelement_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('dragElement', function() {
2020
_hoverlayer: d3Select(this.hoverlayer)
2121
};
2222
this.gd._context = {
23-
doubleClickDelay: 300
23+
doubleClickDelay: 500
2424
};
2525
this.element.innerHTML = 'drag element';
2626

test/plot-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
},
143143
"doubleClickDelay": {
144144
"description": "Sets the delay for registering a double-click in ms. This is the time interval (in ms) between first mousedown and 2nd mouseup to constitute a double-click. This setting propagates to all on-subplot double clicks (except for geo and map) and on-legend double clicks.",
145-
"dflt": 300,
145+
"dflt": 500,
146146
"min": 0,
147147
"valType": "number"
148148
},

0 commit comments

Comments
 (0)