Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

iOS Tab "loses" position when app become active again

Đang mở
#4,357 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
ios, javascript
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với một ứng dụng tab iOS mới, thực hiện các bước nền và tiền cảnh được liệt kê trên trình mô phỏng hoặc thiết bị. Kiểm tra việc xử lý thao tác chạm của tabbar và toolbar-inner; công việc hoàn tất khi tab được chọn và bong bóng vẫn thẳng hàng sau khi mở lại ứng dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • Framework7 version: 9.0.2
  • Platform and Target: iOS (both in cordova as in capacitor)
Describe the bug

When an app became active after I go to the iphone homescreen, the tabbar gets "lost" and the "bubble" stays in a random place. And it seems the active page is not the one showing on the screen.

I tried it in both an existing app migrating from v8.x and algo a complete new black app (from CLI).
I'll provide two videos from both apps to help.

It "seems" that the tabbar "watches" my finger touch or mouse touch when a touch/click above the actual tabbar, moving the "bubble" to the last touched place when exit the app (you can see that watching the mouse on the recording)

To Reproduce

Steps to reproduce the behavior:

  • Create a new app "tab" (iOS), add the platform, build and run (can be on the simulator as on a real device).
  • Choose some other tab than "home"
  • Exit the app (go to iphone home screen) very slowly (so you can see the "bubble" assuming your touched place of the screen
  • Reopen the app
  • See the "bubble tab" position
Expected behavior

A clear and concise description of what you expected to happen.

Actual Behavior

Explain what is actually happening

Screenshots

Behavior on an already existing app (migrated from v8.x):

https://github.com/user-attachments/assets/d0efa106-d45d-412a-9a77-f71f795643b2

Same behavion on a "blank" new app (form CLI):

https://github.com/user-attachments/assets/9d7a0159-31d8-4e09-80b6-65bcdd4f30ca

Here is my code:

<div class="views tabs safe-areas">
  <!-- Tabbar for switching views-tabs -->
  <div class="toolbar tabbar toolbar-bottom tabbar-icons">
    <div class="toolbar-inner">
      <div class="toolbar-pane">
        <a href="#view-home" class="tab-link tab-link-active">
          <i class="icon f7-icons if-not-md">house_fill</i>
          <i class="icon material-icons if-md">home</i>
          <span class="tabbar-label">Home</span>
        </a>
        <a href="#view-catalog" class="tab-link">
          <i class="icon f7-icons if-not-md">square_list_fill</i>
          <i class="icon material-icons if-md">view_list</i>
          <span class="tabbar-label">Catalog</span>
        </a>
        <a href="#view-settings" class="tab-link">
          <i class="icon f7-icons if-not-md">gear</i>
          <i class="icon material-icons if-md">settings</i>
          <span class="tabbar-label">Settings</span>
        </a>
      </div>
    </div>
  </div>
Aditional comment

Watching the component via web inspct it seems thar the touch of the tabbar is looking for the entire height of the "toolbar-inner" element.

Image
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
3.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của framework7io/framework7

Tất cả issue của framework7io/framework7

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.