Changes to let updates happen less frequently:

* _ContrainPoint() was broken as it could never change the point it was supposed
  to contrain.
* MouseDown() no longer sends a notification message automatically (only if it
  changed something)
* MouseMoved() and synchronous MouseDown() will now only send modification messages
  if something actually changed (not for every mouse update).
* After key presses, the invokation message is only sent when the value changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19697 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-04 14:25:13 +00:00
parent efe7244436
commit fb29f5b0fb
2 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ class BSlider : public BControl {
float _MinPosition() const;
float _MaxPosition() const;
bool _ConstrainPoint(BPoint point, BPoint compare) const;
bool _ConstrainPoint(BPoint& point, BPoint compare) const;
virtual void _ReservedSlider5();
virtual void _ReservedSlider6();