Add DelayMs type for settings (#40659)
Closes #40610 Release Notes: - N/A
This commit is contained in:
@@ -1070,7 +1070,10 @@ impl EditorElement {
|
||||
ref mouse_down_time,
|
||||
} => {
|
||||
let drag_and_drop_delay = Duration::from_millis(
|
||||
EditorSettings::get_global(cx).drag_and_drop_selection.delay,
|
||||
EditorSettings::get_global(cx)
|
||||
.drag_and_drop_selection
|
||||
.delay
|
||||
.0,
|
||||
);
|
||||
if mouse_down_time.elapsed() >= drag_and_drop_delay {
|
||||
let drop_cursor = Selection {
|
||||
@@ -6172,7 +6175,10 @@ impl EditorElement {
|
||||
} = &editor.selection_drag_state
|
||||
{
|
||||
let drag_and_drop_delay = Duration::from_millis(
|
||||
EditorSettings::get_global(cx).drag_and_drop_selection.delay,
|
||||
EditorSettings::get_global(cx)
|
||||
.drag_and_drop_selection
|
||||
.delay
|
||||
.0,
|
||||
);
|
||||
if mouse_down_time.elapsed() >= drag_and_drop_delay {
|
||||
window.set_cursor_style(
|
||||
|
||||
Reference in New Issue
Block a user