Remove selection scroll timer (which doesn't work anyway)

This commit is contained in:
elasota
2020-07-03 17:39:26 -04:00
parent e05f37a28d
commit d978267c3e
2 changed files with 1 additions and 8 deletions

View File

@@ -31,7 +31,6 @@ namespace PortabilityLayer
, m_caratScrollLocked(false)
, m_hasFocus(false)
, m_caratTimer(0)
, m_selectionScrollTimer(0)
, m_isMultiLine(false)
, m_isDraggingSelection(false)
, m_dragSelectionStartChar(false)
@@ -273,7 +272,6 @@ namespace PortabilityLayer
{
m_window->FocusWidget(this);
m_isDraggingSelection = true;
m_selectionScrollTimer = kMouseScrollRate;
return HandleDragSelection(evt);
}
else
@@ -335,9 +333,6 @@ namespace PortabilityLayer
Redraw();
}
}
if (m_isDraggingSelection)
m_selectionScrollTimer++;
}
void EditboxWidget::HandleCharacter(uint8_t ch, const uint32_t numRepeatsRequested)
@@ -762,7 +757,6 @@ namespace PortabilityLayer
m_selStartChar = m_dragSelectionStartChar;
}
if (m_selectionScrollTimer >= kMouseScrollRate)
AdjustScrollToCarat();
m_caratTimer = 0;

View File

@@ -92,6 +92,5 @@ namespace PortabilityLayer
size_t m_dragSelectionStartChar;
uint16_t m_caratTimer;
uint16_t m_selectionScrollTimer;
};
}