0
Welcome Guest! Login
0 items Join Now

Side Menu Issues - Surface Pro 4 - Gantry 4

  • Side Menu Issues - Surface Pro 4 - Gantry 4

    Posted 7 years 7 months ago
    • The side menu is broken on a Surface Pro 4 in Gantry 4.

      I've narrowed the issue down to this mediaQuery function in sidemenu.js:
      mediaQuery: function(query){
                  var menu = this.menu,
                      container = this.wrapper;
                  //slide = this.toggler.retrieve('roknavmenu:slidehor');
      
                  if (!menu && !container) return;
                  if (query != '(min-width: 768px)' && query != '(max-width: 767px)') return;
      
                  if (query == '(min-width: 768px)'){
                      menu.inject(this.originalPosition);
                      //this.detachTouchEvents();
                      /*this.slide.wrapper.setStyle('display', 'none');*/
                      this.toggler.setStyle('display', 'none');
                  } else {
                      menu.inject(container);
                      //this.attachTouchEvents();
                      /*this.slide.wrapper.setStyle('display', 'inherit');*/
                      this.toggler.setStyle('display', 'block');
                  }
      
                  //slide.hide();
                  this.toggler.removeClass('active');
              }

      Basically I just commented out the attachTouchEvents and detachTouchEvents. The side menu now works on a Surface Pro 4 and nothing else appears to have been impacted.

      Am I missing something? Why is this code even in there?

      Let me know if you have any insight into this functionality.

      Thanks in advance!
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Side Menu Issues - Surface Pro 4 - Gantry 4

    Posted 7 years 7 months ago

Time to create page: 0.037 seconds