mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Removed wheel support from slider in giveaway box.
This commit is contained in:
parent
4592e4e4bb
commit
3dd415d0c2
1 changed files with 13 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue