This solves lagging noticeable on high-resolution screens. Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>