From b2c5535ff4ef700a475e02c0acebb22850cc318b Mon Sep 17 00:00:00 2001 From: Arnold <397136899@qq.com> Date: Mon, 10 Jun 2019 10:25:50 +0800 Subject: [PATCH] ignore ON_PERCENTAGE_CHANGED event --- .../Classes/NewAudioEngineTest/NewAudioEngineTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp index b1deac52be..331e4460d9 100644 --- a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp +++ b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp @@ -328,7 +328,6 @@ bool AudioControlTest::init() timeSlider->addEventListener([&](Ref* sender, Slider::EventType event){ SliderEx *slider = dynamic_cast(sender); switch(event){ - case Slider::EventType::ON_PERCENTAGE_CHANGED: case Slider::EventType::ON_SLIDEBALL_DOWN: _updateTimeSlider = false; break; @@ -340,6 +339,9 @@ bool AudioControlTest::init() } case Slider::EventType::ON_SLIDEBALL_CANCEL: _updateTimeSlider = true; + case Slider::EventType::ON_PERCENTAGE_CHANGED: + default: + //ignore break; } });