Problem/Motivation

The Outside In prototype introduced in #2753941: [Experimental] Create Outside In module MVP to provide block configuration in Off-Canvas tray and expand site edit mode does not currently work in Safari on iOS.

In HEAD, contextual links are not responsive, and the pencil toggle to expose them is touchy and takes a few tries to trigger, but it does eventually open the contextual links.

With Outside In enabled, the pencil never works on my iPhone.

@drpal tested with an emulator and got a different (but also broken) result:

@drpal said:

Under some circumstance the function that toggles all the edit mode stuff to active is getting called twice.
which is turning it on, and then off again very quickly.

Note that it does work fine for me in a narrow window on Chrome, just not at all on my actual iPhone.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Comments

xjm created an issue. See original summary.

xjm’s picture

Issue summary: View changes
nod_’s picture

Issue tags: +JavaScript
webchick’s picture

Issue tags: +sprint, +Usability
tedbow’s picture

Component: quickedit.module » outside_in.module
GrandmaGlassesRopeMan’s picture

StatusFileSize
new539 bytes
new407.95 KB

This fixes the issue with no touch events being recorded for toggling edit mode.

iOS Animation

webchick’s picture

Status: Active » Needs review

Marking for review.

GrandmaGlassesRopeMan’s picture

wim leers’s picture

Why does click not work at all for Outside In? Touch events are converted to click events, so I'm confused. Is Outside In perhaps doing something special with touch events elsewhere?

GrandmaGlassesRopeMan’s picture

@Wim Leers

That was my expectation also. However after mashing my finger against the edit button with nothing happened, adding a listener for touchstart actually got this to work.

GrandmaGlassesRopeMan’s picture

StatusFileSize
new534 bytes
new819 bytes
GrandmaGlassesRopeMan’s picture

Duplicate comment

GrandmaGlassesRopeMan’s picture

StatusFileSize
new2.24 KB
new1.93 KB

This fixes another issue where the local storage variable was not set on mobile, preventing the off canvas element from opening.

GrandmaGlassesRopeMan’s picture

StatusFileSize
new488.96 KB

Android Remote Debugging

GrandmaGlassesRopeMan’s picture

tedbow’s picture

Status: Needs review » Reviewed & tested by the community

@drpal nice work!
I have checked the patch on an iOs device and fixes the problem of it being broken.

I think there are other issue with the mobile experience but this address the specific concern here.

I filed #2793849: Handle offcanvas differently at lower widths as follow up for a problem I found. That issue doesn't break the functionality so shouldn't hold this up.

xjm’s picture

StatusFileSize
new101.37 KB

So following #2551785: Unable to scroll toolbar menu items or show contextual links on mobile browsers which was committed just this evening, HEAD is working much better on iOS. It is a little wonky and does have a layout bug for the main content area:

That's with HEAD. With this patch, it actually now seems broken again-but-differently... is there any chance this issue is a duplicate, or that our fix here is incompatible with the one there?

xjm’s picture

Status: Reviewed & tested by the community » Needs work

(NW since the current patch actually seems to make things worse than HEAD, though this might just be a duplicate.)

GrandmaGlassesRopeMan’s picture

Issue summary: View changes
StatusFileSize
new699.24 KB

I just retested this from the current HEAD. It appears that these fixes are no longer needed.

wim leers’s picture

Status: Needs work » Closed (cannot reproduce)

Even better. The patch made no sense to me. Sounds like a race condition almost.

gábor hojtsy’s picture

Issue tags: -sprint
tedbow’s picture

Component: outside_in.module » settings_tray.module

Changing to new settings_tray.module component. @drpal thanks for script help! :)