MCPcopy Create free account
hub / github.com/ZDoom/Raze / OnTimerExpired

Method OnTimerExpired

libraries/ZWidget/src/widgets/scrollbar/scrollbar.cpp:360–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void Scrollbar::OnTimerExpired()
361{
362 if (mouse_down_mode == mouse_down_thumb_drag)
363 return;
364
365 mouse_down_timer->Start(100, false);
366
367 double last_position = position;
368 position += last_step_size;
369 if (position >= scroll_max)
370 position = scroll_max - 1;
371
372 if (position < scroll_min)
373 position = scroll_min;
374
375 if (position != last_position)
376 {
377 InvokeScrollEvent(FuncScrollOnMouseDown);
378
379 if (UpdatePartPositions())
380 Update();
381 }
382}
383
384void Scrollbar::OnEnableChanged()
385{

Callers

nothing calls this directly

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected