这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# FVM Version Cache
*.fvmrc
.fvm/
1 change: 1 addition & 0 deletions packages/three_js_core/lib/others/peripherals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class PeripheralsState extends State<Peripherals> {
}

class WebPointerEvent {
int pointerCount = 0;
late int pointerId;
late int button;
String pointerType = 'touch';
Expand Down
4 changes: 2 additions & 2 deletions packages/three_js_core/lib/others/three_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ class ThreeJS {
initPlatformState();
}

void animate(Duration duration) {
Future<void> animate(Duration duration) async {
if (!mounted || disposed || updating) {
return;
}
updating = true;
double dt = clock.getDelta();

if(settings.animate){
render(dt);
await render(dt);
if(!pause){
for(int i = 0; i < events.length;i++){
events[i].call(dt);
Expand Down