Gesture handler not working with ui-chart on ios
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, javascript
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Bắt đầu với stack trace xung quanh Manager.attachGestureHandler, TapHandler.attachToView và LineChart.setHighlightPerTapEnabled, sau đó so sánh hành vi giữa gestureHandler 2.0.12 với 2.0.24/2.0.28 và ui-chart 1.2.28/1.2.32/1.2.35. Tái hiện trên các thiết bị iOS được liệt kê và xác nhận rằng biểu đồ được render cũng như các gesture chạm/kéo hoạt động mà không cần làm mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
I am using @nativescript-cummunity/ui-chart to display a line chart in my application, it seems to work out in android seamlessly, for IOS though, I have to refresh my screen twice for my chart to be visible and once it appears I am not able to tap or drag on the chart.
This is the error I keep seeing :
NS error log:{"type":"JavaScript","message":"this.manager.registerGestureHandler is not a function","stack":"TypeError: this.manager.registerGestureHandler is not a function\n at Manager.attachGestureHandler (file:///app/vendor.js:6169:22)\n at TapHandler.attachToView (file:///app/vendor.js:5971:28)\n at BarLineChartTouchListener.setTap (file:///app/vendor.js:17827:49)\n at LineChart.setHighlightPerTapEnabled (file:///app/vendor.js:11637:48)\n at ChartsComponent.createLineChart (file:///app/bundle.js:2209:22)\n at ChartsComponent.onLineChartLoaded (file:///app/bundle.js:2148:14)\n at ChartsComponent__chart_LineChart_3_Template__chart_LineChart_loaded_0_listener (file:///app/bundle.js:1993:386)\n at executeListenerWithErrorHandling (file:///app/vendor.js:139587:12)\n at Object.wrapListenerIn_markDirtyAndPreventDefault (file:///app/vendor.js:139618:18)\n at _ZoneDelegate.invokeTask (file:///app/vendor.js:103604:31)"}
P.S
this is only an issue with GestureHandler version > 2.0.12, I have 2 repos, it seems to work where my GestureHandler version is 2.0.12, it does not work for the second repo where version is 2.0.24/2.0.28. This version is controlled by ui-chart automatically.
Also, if I remove the below lines which are essentially calling for gesture handler, the issue goes away but then I don't have the functionality for tap or drag:
this.lineRef.setHighlightPerTapEnabled(true);
this.lineRef.setHighlightPerDragEnabled(true);
Expected Behaviour:
Chart should be visible at all times and gestures should be enabled.
Device (please complete the following information):
Device: Iphone 15 pro, pro max, iphone 13
Ios version : 17.0.2, 15.0.0
Library Version :
ui-chart : 1.2.28/1.2.32/1.2.35
gestureHandler: 2.0.24/2.0.28
- Ngôn ngữ chính
- Java
- Star
- 15
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nativescript-community/gesturehandler
-
Fix READMEĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 55/100
nativescript-community/gesturehandler#17 · 3 bình luận · 2 reaction ·
Tất cả issue của nativescript-community/gesturehandler
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
apache/arrow-java#1311 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
IBM/networking-java-sdk#204 ·
-
bug Technical Debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
avniproject/avni-server#1080 ·