mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Removed wheel support from slider in giveaway box.
This commit is contained in:
@@ -279,8 +279,20 @@ void CreateGiveawayBox(
|
||||
|
||||
const auto &padding = st::giveawayGiftCodeSliderPadding;
|
||||
Settings::AddSkip(sliderContainer, padding.top());
|
||||
|
||||
class Slider : public Ui::MediaSlider {
|
||||
public:
|
||||
using Ui::MediaSlider::MediaSlider;
|
||||
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent *e) override {
|
||||
e->ignore();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const auto slider = sliderContainer->add(
|
||||
object_ptr<Ui::MediaSlider>(sliderContainer, st::settingsScale),
|
||||
object_ptr<Slider>(sliderContainer, st::settingsScale),
|
||||
st::boxRowPadding);
|
||||
Settings::AddSkip(sliderContainer, padding.bottom());
|
||||
slider->resize(slider->width(), st::settingsScale.seekSize.height());
|
||||
|
Reference in New Issue
Block a user