Click on menu icon scroll up automatically in mobile

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Mon Sep 21, 2015 4:41 pm
Reply with quote
Report this post
Hi
with this template, when I click in the menu, all page is scrolling up automatically. You can test it in your demo.

Could you help me to fix it please?

Thanks in advance

Regards
User avatar
Expert Boarder

GK User
Mon Sep 21, 2015 5:53 pm
Reply with quote
Report this post
This is a really strange bug. I'll report it to our devteam and will let you know as soon as I get an answer.
User avatar
Moderator

GK User
Tue Sep 22, 2015 8:39 pm
Reply with quote
Report this post
Thanks Ciberek

I hope for your news soon ;)
User avatar
Expert Boarder

GK User
Tue Sep 22, 2015 8:47 pm
Reply with quote
Report this post
FYI: this bug is only in Safari for iOS (iPhone and iPad)
User avatar
Expert Boarder

GK User
Fri Sep 25, 2015 8:57 pm
Reply with quote
Report this post
We did some analysis on that issue and it looks like a strange bug in iOS8&9 safari while focus is set on a select element.
We will implement a fix that should at least make it behave a little better. You can try it by yourself.
Please edit this file:
/templates/gk_simplicity/js/gk.menu.js
and modify its beginning so it looks this way:
Code: Select all
jQuery(document).ready(function() {
   // Fix for iOS devices with iOS >= 8.0
   var menuWrap = jQuery('#gkMenuWrap');
   
   if(menuWrap.length) {
      jQuery(window).on('scroll', function(e) {
         if(menuWrap.hasClass('active')) {
            menuWrap.css('top', jQuery(window).scrollTop());
         } else {
            menuWrap.css('top', '-100px');
         }
      });
   }

   // Code for main menu
   if(jQuery('#gkExtraMenu')) {
           // fix for the iOS devices     
           jQuery('#gkExtraMenu ul li span').each(function(el) {
               el.attr('onmouseover', '');
           });

(part starting with // Code for main menu should already be there)
and next please edit this file:
/templates/gk_simplicity/css/menu/menu.css
and find this part:
Code: Select all
/* Fixed menu */
#gkMenuWrap {
    background: #fff;
    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    height: 70px;
    left: 0;
    position: fixed;
    top: -100px;
    width: 100%;
    z-index: 1001;
}
.imageBg #gkMenuWrap {
    -webkit-transition: top .2s ease-out;
    -moz-transition: top .2s ease-out;
    -ms-transition: top .2s ease-out;
    -o-transition: top .2s ease-out;
    transition: top .2s ease-out;
}

and change it to:
Code: Select all
/* Fixed menu */
#gkMenuWrap {
    background: #fff;
    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    box-shadow: 0 0 6px rgba(0, 0, 0, .26);
    height: 70px;
    left: 0;
    position: absolute;
    top: -100px;
    width: 100%;
    z-index: 1001;
}
User avatar
Moderator

GK User
Mon Sep 28, 2015 11:31 am
Reply with quote
Report this post
Perfect now!

Thanks a lot for your help :)
User avatar
Expert Boarder

GK User
Mon Sep 28, 2015 1:40 pm
Reply with quote
Report this post
little bug in this modif.

Menu blinks when scrolls.

Could you take a look please?

thanks in advance
User avatar
Expert Boarder

GK User
Tue Sep 29, 2015 8:10 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Wed Sep 30, 2015 3:33 pm
Reply with quote
Report this post
Hi,

would you please tell me how i can enable scroll on my main page in order to see all menu when i do scrolling on main page.

regards
User avatar
Fresh Boarder

GK User
Fri Oct 02, 2015 4:25 pm
Reply with quote
Report this post
@tayyabnono please create a separate forum thread as it seems your question doesn't correspond to original topic.
User avatar
Moderator


cron