Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/8014_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Increase default double-click delay threshold to 500ms (from 300) [[#8014](https://github.com/plotly/plotly.js/pull/8014)]
2 changes: 1 addition & 1 deletion src/plot_api/plot_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ var configAttributes = {
},
doubleClickDelay: {
valType: 'number',
dflt: 300,
dflt: 500,
min: 0,
description: [
'Sets the delay for registering a double-click in ms.',
Expand Down
2 changes: 1 addition & 1 deletion src/types/generated/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16573,7 +16573,7 @@ export interface ConfigBase {
doubleClick?: false | 'reset' | 'autosize' | 'reset+autosize';
/**
* 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.
* @default 300
* @default 500
* Minimum: 0
*/
doubleClickDelay?: number;
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/tests/dragelement_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('dragElement', function() {
_hoverlayer: d3Select(this.hoverlayer)
};
this.gd._context = {
doubleClickDelay: 300
doubleClickDelay: 500
};
this.element.innerHTML = 'drag element';

Expand Down
2 changes: 1 addition & 1 deletion test/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
},
"doubleClickDelay": {
"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.",
"dflt": 300,
"dflt": 500,
"min": 0,
"valType": "number"
},
Expand Down