I have one problem when i use window orientation change event its not firing on devices. Here, i have added my code. Please help me out from this issue.
Example code,
define(["jquery"], function($) {
$(function() {
set_screen();
});
function set_screen(){
var winH = $(window).height(),
winW = $(window).width();
$('.fullscreen-slider ul.slide li').css({'height':winH});
}
$(window).on("orientationchange", function(event) {
set_screen();
});
});