ButtonBase widget is using non-optimal code for hover state.

Issue #44 resolved
Former user created an issue

Automatic migration. Original reporter: "lindquist"

ButtonBase is using code like this:

d_hovering = (this == sheet->getChildAtPosition(mouse_pos));

every time the mouse moves. It's slow and can be fixed.

Reported here: http://www.cegui.org.uk/phpBB2/viewtopic.php?p=7913#7913

Reproducibility: always

Comments (1)

  1. Anonymous

    Original reporter: lindquist

    The behaviour of updateInternalState has been altered a bit to solve this.

    This code is rewritten and has a slightly different behaviour it is no longer fully "correct", as overlapping windows will not be considered if the widget is currently captured. On the other hand it's alot faster, so I believe it's a worthy tradeoff

  2. Log in to comment