PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 22 → Example: WW_Overview_Mobile_Application
Example: WW_Overview_Mobile_Application
Débuté par Urs Singer, 14 jan. 2017 18:05 - Aucune réponse
//hostimage.webdev.info/avatars/default.gif
Posté le 14 janvier 2017 - 18:05
Following function is not working in Chrome but in IE

/ Scroll to a Position
FUNCTION ScrollToAnime(nPosition){
$('html, body').animate({scrollTop:nPosition}, 'slow');
}


the function is call by following procedure:

// Summary: Displays an area
// Syntax:
//AreaDisplay (<nSubscript> is int)
//
// Parameters:
// nSubscript (integer): Subscript of the area to display
//
Procedure AreaDisplay(nSubscript is int)

nMargin is int = ZONE_Header..Height

BRW_Bar..Collapsed = True

SWITCH nSubscript
CASE 1
ScrollToAnime(ZONE_1..Y - nMargin)
CASE 2
ScrollToAnime(ZONE_2..Y - nMargin)
CASE 3
// YouTube video
ScrollToAnime(ZONE_3..Y - nMargin)

// Start the video playing
EXTERN player
IF player THEN
player.playVideo()
END
CASE 4
ScrollToAnime(ZONE_4..Y - nMargin)
CASE 5
ScrollToAnime(ZONE_5..Y - nMargin)
END


Somebody knows what has to be corrected that it works also in Chrome?