Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.1.0] Problem on mobile when catalog gallery allowfullscreen is false #5808

Closed
peec opened this issue Jul 26, 2016 · 32 comments
Closed

[2.1.0] Problem on mobile when catalog gallery allowfullscreen is false #5808

peec opened this issue Jul 26, 2016 · 32 comments
Labels
Area: Frontend bug report Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@peec
Copy link

peec commented Jul 26, 2016

This is repost of #2818 since that one got closed due to incorrect bug report guidelines. I have the same issue.

Preconditions

  1. Magento 2.1.0 GA
  2. PHP 7.0.3
  3. MySQL 5.6
  4. Linux Mint
  5. Tested in browser: Chrome latest ( mobile view )

Steps to reproduce

  1. In theme's view.xml, set gallery's allowfullscreen variable to false.
  2. Flush cache and static files.
  3. Go to a product page with an image on a mobile touch capable device, or minimize the screen to mobile view in chrome. Tap on the image.

Expected result

  1. Nothing should happen when image is clicked since "allowfullscreen" is false.

Actual result

A white page ( the page-wrapper is hidden ).

image

I found that in lib/mage/gallery/gallery.js, even when allowfullscreen = false may be preventing the popup, code is still being executed that hides the page-wrapper.

if (this.isTouchEnabled) {
    this.settings.$element.on('tap', '.fotorama__stage__frame', function () {
        var translate = getTranslate($(this).parents('.fotorama__stage__shaft'));

        if (translate[1] === '0' && !$(this).hasClass('fotorama-video-container')) {
            self.openFullScreen();
            self.settings.$pageWrapper.hide();
        }
    });
}

Best case would probably be to check allowfullscreen prior to self.settings.$pageWrapper.hide();

@ghost
Copy link

ghost commented Sep 20, 2016

This is the second bug that I have noticed that impacts customer experience on mobile. If you inadvertently tap the product image while attempting to scroll you basically render your site inaccessible until you refresh the page. @ilol any updates on this. TY

@ilol
Copy link

ilol commented Sep 20, 2016

We have fixed #5302 (internal MAGETWO-55608 )
We will reproduce your present issue and then will fix it if it is reproducible.

@ilol
Copy link

ilol commented Sep 20, 2016

@Hyroniemus can you please share the link to your site. In PM if you want. Thanks

@ilol
Copy link

ilol commented Sep 20, 2016

@peec , can you please share the link to your site (if it is live). In PM if you want. Thanks

@ghost
Copy link

ghost commented Sep 20, 2016

Unable to send private messages, what about the email in your profile?

@ilol
Copy link

ilol commented Sep 21, 2016

It works!

@LucScu
Copy link

LucScu commented Sep 27, 2016

anyone fixed this bug?

@ilol
Copy link

ilol commented Sep 27, 2016

The bug is fixed. Wait for mainline appearance

@ilol ilol closed this as completed Sep 27, 2016
@LucScu
Copy link

LucScu commented Sep 28, 2016

@ilol could you post the code to fix this bug like you done here 7597a52?

@ilol
Copy link

ilol commented Sep 28, 2016

Sorry, mistake. The issue is nor fixed yes. This is tracking number: MAGETWO-59075

@ilol ilol reopened this Sep 28, 2016
@LucScu
Copy link

LucScu commented Sep 28, 2016

@ilol thx for update.
How could i visit your link? It seems that i can't access to it.

@ilol
Copy link

ilol commented Sep 28, 2016

That is our internal system, I can`t grant access to you

@LucScu
Copy link

LucScu commented Sep 29, 2016

yes i understand, hope you fix this early, thx

@ghost
Copy link

ghost commented Oct 10, 2016

@ilol will a fix for this be present in the next release?

@ilol
Copy link

ilol commented Oct 11, 2016

We can`t reproduce it

@ghost
Copy link

ghost commented Oct 13, 2016

Using an android device this bug is still present. I haven't been able to test on other mobile devices.

@ilol
Copy link

ilol commented Oct 13, 2016

Will test with Android.
Please clarify Android version and device

@ilol ilol closed this as completed Oct 13, 2016
@ilol ilol reopened this Oct 13, 2016
@ghost
Copy link

ghost commented Oct 13, 2016

Android 5.1
Chrome 53.0.2785.124

@ziiljuks
Copy link

ziiljuks commented Oct 22, 2016

Same happens for me but on desktop view (laptop with touchscreen if that somehow changes things).
Ubuntu 16.04. Clean M 2.1.2 install. Luma theme, developer mode, cache disabled.

With mouse clicks and touch.

@ghost
Copy link

ghost commented Oct 23, 2016

@ilol any update on this?

@veloraven veloraven added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 26, 2016
@yofisim
Copy link

yofisim commented Nov 23, 2016

Any news about this? This is a huge bug for UX.

@Tristan-N
Copy link

@ilol Is there any update/news on this issue? I have Fotorama issues as well for mobile users and would like to see it solved. I mean, it should be possible to figure something out in 4 months, right?

@jpgreth
Copy link

jpgreth commented Jan 13, 2017

Same Problem here. Costumer isn't very happy about this behaviour...

@ghost
Copy link

ghost commented Jan 13, 2017

Give magic zoom a try. It's a paid extension, but it works well. Fotorama has issues on mobile.

@Tristan-N
Copy link

@jupiter01 I totally agree. We use it since a couple of weeks now and it's really great. @magento-team, maybe you should consider this instead of Fotorama?

@Crossmotion
Copy link
Contributor

Bug still exists in Magento 2.1.3. Solution to fix this:

in lib/web/mage/gallery/gallery.js
replace if (this.isTouchEnabled) { to if (this.isTouchEnabled && this.settings.isFullscreen) {

This prevents the fullscreen view to open when fullscreen is disabled.

@Crossmotion
Copy link
Contributor

Suggested fix in pull request here: #8434

@vrann
Copy link
Contributor

vrann commented Feb 18, 2017

@Crossmotion @peec #8434 is accepted, can the issue be closed?

@Crossmotion
Copy link
Contributor

@vrann, Fine for me. Thanks for processing the fix so fas!

@vrann vrann closed this as completed Mar 15, 2017
@underser
Copy link

Hi!
Can enybody, please, explain me. How I can override initialize method (for add fix from @Crossmotion), that was defined in this file lib/web/mage/gallery/gallery.js. I try write mixin, but can't get this method in it.
All that I was found is this https://magento.stackexchange.com/questions/104324/how-to-extend-core-js-files-or-class-or-function-in-magento2

Thank you very much.

@magento-team magento-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report develop Area: Frontend labels Jul 31, 2017
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-64250

@magento-engcom-team
Copy link
Contributor

Hi @peec. Thank you for your report.
The issue has been fixed in #14098 by @simpleadm in 2.1-develop branch
Related commit(s):

The fix will be available with the upcoming 2.1.14 release.

@magento-engcom-team magento-engcom-team added Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Mar 16, 2018
mmansoor-magento pushed a commit that referenced this issue Oct 15, 2020
[TSG] Fixes for 2.3 (pr138) (2.3.6-develop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend bug report Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests