  
  protected:
    void paintEvent(QPaintEvent *event) override;
    void resizeEvent(QResizeEvent* event) override;
    void mouseReleaseEvent(QMouseEvent *event) override { emit clicked(); }
    QString lastText_, elidedText_;
  };
  
  
  class AbstractControl : public QFrame {
 
</s> remove   emit clicked();
 </s> add   if (rect().contains(event->pos())) {
    emit clicked();
  } </s> remove 
 </s> add   sp.setScrollMetric(QScrollerProperties::MousePressEventDelay, 0.01);
  void mouseReleaseEvent(QMouseEvent *event) override { 
    if (rect().contains(event->pos())) {
      emit clicked(); 
    }
  }
  
  protected:
    void paintEvent(QPaintEvent *event) override;
    void resizeEvent(QResizeEvent* event) override;
  void mouseReleaseEvent(QMouseEvent *event) override { 
    if (rect().contains(event->pos())) {
      emit clicked(); 
    }
  }
    QString lastText_, elidedText_;
  };
  
  
  class AbstractControl : public QFrame {
keep keep keep keep replace keep keep keep keep keep
 UI: fix unable to scroll on 'Regulatory' page (#25014)

* fix unable to scroll on 'Regulatory' page

deleteLater after hide

* remove alert

* override exec

* set MousePressEventDelay to 0

* set to 0.01

* cleanup

* check event->pos() 
selfdrive/ui/qt/widgets/controls.h