  
    m_map->scaleBy(1 + factor, ev->pos() / MAP_SCALE);
    update();
  
    zoom_counter = PAN_TIMEOUT;
    ev->accept();
  }
  
  bool MapWindow::event(QEvent *event) {
    if (event->type() == QEvent::Gesture) {
 
</s> remove     pan_counter = PAN_TIMEOUT;
 </s> add     interaction_counter = INTERACTION_TIMEOUT; </s> remove   pan_counter = 0;
  zoom_counter = 0;
 </s> add   interaction_counter = 0; </s> remove   if (pan_counter == 0) {
 </s> add   if (interaction_counter == 0) { </s> remove   } else {
    pan_counter--;
  }

  if (zoom_counter == 0) {
 </s> add  </s> remove     zoom_counter--;
 </s> add     interaction_counter--;
  interaction_counter = INTERACTION_TIMEOUT;
  
    m_map->scaleBy(1 + factor, ev->pos() / MAP_SCALE);
    update();
  
  interaction_counter = INTERACTION_TIMEOUT;
    ev->accept();
  }
  
  bool MapWindow::event(QEvent *event) {
    if (event->type() == QEvent::Gesture) {
keep keep keep keep replace keep keep keep keep keep
 ui/map: interactive counter fix (#29470)

* use interactive_counter instead of separate zoom and pan counters

* use interaction_counter instead of separate zoom and pan counters

* same styling

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com> 
selfdrive/ui/qt/maps/map.cc