teragrep / ajs_01

User interface for Teragrep
Apache License 2.0
0 stars 1 forks source link

Refactor autofocus feature #293

Open BVVLD opened 1 month ago

BVVLD commented 1 month ago

Description Current autofocus mechanics are using timeouts to synchronize with elements animations and loading. As mentioned in PR#323, this is not an ideal solution and should be refactored to remove the timeout code.

BVVLD commented 1 month ago

Suggestion: to achieve this, autofocus triggering should be inverted. It should be possible with creating a new directive, which would call focus function when element finishes loading. Some similar solutions were already implemented before. Examine result loading callbacks for reference.