@@ -710,15 +710,15 @@ var LibraryHTML5 = {
710710#else
711711 var uiEvent = JSEvents . uiEvent ;
712712#endif
713- { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . detail , 'e.detail ' , 'i32' ) } } } ;
713+ { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . detail , '0 ' , 'i32' ) } } } ; // always zero for resize and scroll
714714 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . documentBodyClientWidth , 'b.clientWidth' , 'i32' ) } } } ;
715715 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . documentBodyClientHeight , 'b.clientHeight' , 'i32' ) } } } ;
716716 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowInnerWidth , 'innerWidth' , 'i32' ) } } } ;
717717 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowInnerHeight , 'innerHeight' , 'i32' ) } } } ;
718718 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowOuterWidth , 'outerWidth' , 'i32' ) } } } ;
719719 { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowOuterHeight , 'outerHeight' , 'i32' ) } } } ;
720- { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . scrollTop , 'pageXOffset' , 'i32' ) } } } ;
721- { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . scrollLeft , 'pageYOffset' , 'i32' ) } } } ;
720+ { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . scrollTop , 'pageXOffset | 0 ' , 'i32' ) } } } ; // scroll offsets are float
721+ { { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . scrollLeft , 'pageYOffset | 0 ' , 'i32' ) } } } ;
722722#if PTHREADS
723723 if ( targetThread ) __emscripten_run_callback_on_thread ( targetThread , callbackfunc , eventTypeId , uiEvent , userData ) ;
724724 else
0 commit comments