MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / stopScrolling

Method stopScrolling

code/main/RenderLocation.ts:94–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 private stopScrolling(): void{
95 // Set the scroll to 0
96 $("html").scrollTop(0);
97
98 // Reset css for our location string
99 $(this.locationString).css({
100 'position' : 'relative',
101 'overflow-x' : 'hidden'
102 });
103
104 // Reset css for around the status bar
105 $("#aroundStatusBar").css({
106 'position' : 'relative',
107 'top' : 'auto',
108 'left' : 'auto',
109 'right' : 'auto',
110 'height' : 'auto'
111 });
112 }
113}

Callers 1

setScrollingMethod · 0.95

Calls 3

$Function · 0.85
scrollTopMethod · 0.80
cssMethod · 0.65

Tested by

no test coverage detected