@@ -710,15 +710,15 @@ var LibraryHTML5 = {
710
710
#else
711
711
var uiEvent = JSEvents . uiEvent ;
712
712
#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
714
714
{ { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . documentBodyClientWidth , 'b.clientWidth' , 'i32' ) } } } ;
715
715
{ { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . documentBodyClientHeight , 'b.clientHeight' , 'i32' ) } } } ;
716
716
{ { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowInnerWidth , 'innerWidth' , 'i32' ) } } } ;
717
717
{ { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowInnerHeight , 'innerHeight' , 'i32' ) } } } ;
718
718
{ { { makeSetValue ( 'uiEvent' , C_STRUCTS . EmscriptenUiEvent . windowOuterWidth , 'outerWidth' , 'i32' ) } } } ;
719
719
{ { { 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' ) } } } ;
722
722
#if PTHREADS
723
723
if ( targetThread ) __emscripten_run_callback_on_thread ( targetThread , callbackfunc , eventTypeId , uiEvent , userData ) ;
724
724
else
0 commit comments