model_viewer_plus.dart
model_viewer_plus.dart copied to clipboard
camera-change and interact-stopped events do not fire
Describe the bug camera-change and interact-stopped events do not fire when changing camera via touch or code. there are sometimes a few camera-change events on load but that is it.
To reproduce
let mv = document.querySelector('model-viewer');
mv.addEventListener('camera-change', function(event) {
console.log('camera-change');
});
mv.addEventListener('interact-stopped', function(event) {
console.log('interact-stopped');
});
Expected behavior I expect these logs to fire so that I can use JS to change the HTML
Desktop (please complete the following information):
- OS: MacOS Ventura 13.3.1
- Browser Chrome
- Version 121.0.6167.139 (Official Build) (arm64)
Additional context Flutter 3.13.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision efbf63d9c6 (6 months ago) • 2023-08-15 21:05:06 -0500 Engine • revision 1ac611c64e Tools • Dart 3.1.0 • DevTools 2.25.0
model_viewer_plus: ^1.7.0