wxMaxima
Loading...
Searching...
No Matches
Macros | Functions
test_WheelSteps.cpp File Reference

Tests wxm::WheelSteps, which turns the small wheel events a touchpad or a high-resolution wheel sends (wxGTK on Wayland) into whole steps, so scrolling over a selected animation doesn't flick through a frame per event. More...

#include "WheelSteps.h"
#include <catch2/catch.hpp>
Include dependency graph for test_WheelSteps.cpp:

Functions

 TEST_CASE ("A classic wheel notch is one step")
 
 TEST_CASE ("Small high-resolution events add up to one step")
 
 TEST_CASE ("Small negative events add up to one step backwards")
 
 TEST_CASE ("A fast flick can complete several steps at once")
 
 TEST_CASE ("Reversing direction drops the leftover from the old direction")
 
 TEST_CASE ("Zero rotation never makes a step")
 
 TEST_CASE ("Reset forgets a partial step")
 
 TEST_CASE ("A nonsensical delta counts every event as one step")
 
int main (int argc, char *argv[])
 

Detailed Description

Tests wxm::WheelSteps, which turns the small wheel events a touchpad or a high-resolution wheel sends (wxGTK on Wayland) into whole steps, so scrolling over a selected animation doesn't flick through a frame per event.