1
0
Fork 0
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:
Brian Fiete 2020-09-05 05:39:51 -07:00
parent 97fd278e07
commit 709b337617
6 changed files with 31 additions and 10 deletions

View file

@ -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;
}

View file

@ -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)) ||