forked from enlightenment/efl
elm_code: Don't update selection if it didn't change
Summary: Mouse motion can cause multiple worthless selection updates with no change to row or column. Discard updates that don't really update. ref T6209 Depends on D7692 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T6209 Differential Revision: https://phab.enlightenment.org/D7693
This commit is contained in:
parent
965cb9d28d
commit
ec910c5bb9
|
@ -74,6 +74,9 @@ elm_code_widget_selection_end(Evas_Object *widget,
|
|||
|
||||
pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
|
||||
|
||||
if (pd->selection && (pd->selection->end_line == line) &&
|
||||
(pd->selection->end_col == col)) return;
|
||||
|
||||
_elm_code_widget_selection_limit(widget, pd, &line, &col);
|
||||
if (!pd->selection)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue