mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Remove selection scroll timer (which doesn't work anyway)
This commit is contained in:
@@ -31,7 +31,6 @@ namespace PortabilityLayer
|
|||||||
, m_caratScrollLocked(false)
|
, m_caratScrollLocked(false)
|
||||||
, m_hasFocus(false)
|
, m_hasFocus(false)
|
||||||
, m_caratTimer(0)
|
, m_caratTimer(0)
|
||||||
, m_selectionScrollTimer(0)
|
|
||||||
, m_isMultiLine(false)
|
, m_isMultiLine(false)
|
||||||
, m_isDraggingSelection(false)
|
, m_isDraggingSelection(false)
|
||||||
, m_dragSelectionStartChar(false)
|
, m_dragSelectionStartChar(false)
|
||||||
@@ -273,7 +272,6 @@ namespace PortabilityLayer
|
|||||||
{
|
{
|
||||||
m_window->FocusWidget(this);
|
m_window->FocusWidget(this);
|
||||||
m_isDraggingSelection = true;
|
m_isDraggingSelection = true;
|
||||||
m_selectionScrollTimer = kMouseScrollRate;
|
|
||||||
return HandleDragSelection(evt);
|
return HandleDragSelection(evt);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -335,9 +333,6 @@ namespace PortabilityLayer
|
|||||||
Redraw();
|
Redraw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_isDraggingSelection)
|
|
||||||
m_selectionScrollTimer++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditboxWidget::HandleCharacter(uint8_t ch, const uint32_t numRepeatsRequested)
|
void EditboxWidget::HandleCharacter(uint8_t ch, const uint32_t numRepeatsRequested)
|
||||||
@@ -762,7 +757,6 @@ namespace PortabilityLayer
|
|||||||
m_selStartChar = m_dragSelectionStartChar;
|
m_selStartChar = m_dragSelectionStartChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_selectionScrollTimer >= kMouseScrollRate)
|
|
||||||
AdjustScrollToCarat();
|
AdjustScrollToCarat();
|
||||||
|
|
||||||
m_caratTimer = 0;
|
m_caratTimer = 0;
|
||||||
|
@@ -92,6 +92,5 @@ namespace PortabilityLayer
|
|||||||
size_t m_dragSelectionStartChar;
|
size_t m_dragSelectionStartChar;
|
||||||
|
|
||||||
uint16_t m_caratTimer;
|
uint16_t m_caratTimer;
|
||||||
uint16_t m_selectionScrollTimer;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user