Alternative to X for closing mobile menu?

More
10 years 4 months ago #36046 by ced1870
for the touch issue, have you tested only with safari or also with another browser ?
on my Samsung S6 it works too

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36051 by mberman14
Good to hear that it's working on Samsung, though of course I need it to work in iPhone too. Here's what I've discovered so far. It works:
  • on very short pages where I can tap below the footer.
  • on pages that have a picture that does not expand, when I tap the picture
  • on pages that have a picture that DOES expand, but only when I tap to reduce the picture after expanding it
  • on pages that have a slideshow (CK, of course!) when I tap the slideshow

So, it seems that where it does not work is in text -- the text of the main article body, breadcrumbs, and footer. Don't know if that helps, but that's what I've got so far.

Thanks,
Matt

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36060 by ced1870
I have tested, it works now by my side
please try again (download the file again) and tell me

Joomlack Webmaster and Developer
The following user(s) said Thank You: mberman14

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36061 by mberman14
That did it! Thanks so much, CEd -- you're brilliant.

Now I just have to figure out how to gray out the background. :(

Plus, now he's thinking maybe he'd like it to slide down from the top, but keep the page still underneath, and still show the top bar fixed to the top. :angry:

Anyway, thanks again!

-Matt

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago - 10 years 4 months ago #36063 by ced1870

CEd -- you're brilliant.

Thank you, thank you ! (applause :D)

now what "he" is asking is a custom development. I will not spend my time to make what one person want. The plugin works like this for now :)

if "he" needs a custom quote, then give him my email

Joomlack Webmaster and Developer
Last edit: 10 years 4 months ago by ced1870.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #36094 by mberman14
Dear CEd,

Thanks so much for all of your work on this. I've got it all working now.

Just to wrap it up:
  • Your revision got the touch outside the menu to close working.
  • To stop the background page from sliding, comment out the .animate
    Code:
    case 'slideleft': mobilemenu.css('display', 'block').css('opacity', '0').css('width', '0').animate({'opacity': '1', 'width': '300px'}); $('body').css('position', 'relative'); // took background slide left animation out to stop the background page from sliding (mb).animate({'left': '300px'}); break;
  • To gray out the background, add
    Code:
    .css('background', '#888888')
    to the $('body') line
  • To get the background back to normal color when the menu closes, add this to the closeMenu Function, $('body') line
    Code:
    .css('background', '#ffffff') //or whatever your background color should be

Hope that helps someone else. Thanks again,
Matt

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 820 guests and one member online