diff options
author | crupest <crupest@outlook.com> | 2018-09-13 23:59:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-13 23:59:37 +0800 |
commit | 8421f07abdb3ee970b81f541a9d3430750ab1371 (patch) | |
tree | b8957f8b3e4298446a24aeebb3dd6cd1292cb1a1 /CruUI/ui/controls/text_block.cpp | |
parent | da54cf6e1dd9ffbf1e57a8a3c19e41a8fcedf5b1 (diff) | |
download | cru-8421f07abdb3ee970b81f541a9d3430750ab1371.tar.gz cru-8421f07abdb3ee970b81f541a9d3430750ab1371.tar.bz2 cru-8421f07abdb3ee970b81f541a9d3430750ab1371.zip |
...
Diffstat (limited to 'CruUI/ui/controls/text_block.cpp')
-rw-r--r-- | CruUI/ui/controls/text_block.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp index 3d53da7c..2a3017fe 100644 --- a/CruUI/ui/controls/text_block.cpp +++ b/CruUI/ui/controls/text_block.cpp @@ -127,7 +127,6 @@ namespace cru void TextBlock::OnMouseMoveCore(events::MouseEventArgs& args) { - OutputDebugStringW(L"Mouse move!"); if (is_selecting_) { const auto hit_test_result = TextLayoutHitTest(text_layout_.Get(), args.GetPoint(this), false).value(); @@ -162,7 +161,7 @@ namespace cru is_selecting_ = false; GetWindow()->ReleaseCurrentMouseCapture(); } - if (!args.IsWindow()) + if (!args.IsWindow()) // If the focus lose is triggered window-wide, then save the selection state. Otherwise, clear selection. { selected_range_ = std::nullopt; Repaint(); |