mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 21:05:59 +02:00
Made using/pragma fixits no long focus on change
This commit is contained in:
parent
97fd278e07
commit
709b337617
6 changed files with 31 additions and 10 deletions
|
@ -759,7 +759,7 @@ namespace Beefy.theme.dark
|
|||
return val;
|
||||
}
|
||||
|
||||
public void CheckRecordScrollTop()
|
||||
public void CheckRecordScrollTop(bool force = false)
|
||||
{
|
||||
if (mWantsCheckScrollPosition)
|
||||
{
|
||||
|
@ -784,7 +784,7 @@ namespace Beefy.theme.dark
|
|||
mWantsCheckScrollPosition = false;
|
||||
}
|
||||
|
||||
if (mEditWidget.mHasFocus)
|
||||
if ((mEditWidget.mHasFocus) && (!force))
|
||||
{
|
||||
mTopCharId = -1;
|
||||
}
|
||||
|
|
|
@ -941,8 +941,8 @@ namespace Beefy.widgets
|
|||
{
|
||||
#unwarn
|
||||
int cursorPos = CursorTextPos;
|
||||
if (mCursorTextPos >= index)
|
||||
mCursorTextPos = Math.Clamp(mCursorTextPos + (int32)ofs, 0, mData.mTextLength + 1);
|
||||
if (cursorPos >= index)
|
||||
CursorTextPos = Math.Clamp(mCursorTextPos + (int32)ofs, 0, mData.mTextLength + 1);
|
||||
if (HasSelection())
|
||||
{
|
||||
if (((ofs > 0) && (mSelection.Value.mStartPos >= index)) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue