Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From browsing the source code <a href="https://github.com/codecomputerlove/PhotoSwipe" rel="noreferrer">here</a> there appears to be a few possible options.</p> <ol> <li><p>Override the OnFadeout or fadeout function in <a href="https://github.com/codecomputerlove/PhotoSwipe/blob/master/src/toolbar.class.js" rel="noreferrer">toolbar.class.js</a> so that it doesn't fadeout the toolbar based on a setting you set. Specifically by adding a settings based if statement around the following <a href="https://github.com/codecomputerlove/PhotoSwipe/blob/master/src/toolbar.class.js#L484" rel="noreferrer">line</a>.</p></li> <li><p>Override or add additional Event Listeners to the OnBeforeJide or OnHide events, to unhide or stop the hide of the toolbar. </p> <p>For an example of a custom event listner see <a href="https://github.com/codecomputerlove/PhotoSwipe/blob/master/src/examples/07-custom-toolbar.html" rel="noreferrer">here</a> or outright remove the OnHide event by calling <code>Util.Events.remove(this.toolbar,Toolbar.EventTypes.onHide, this.toolbarHideHandler);</code>, outside of the PhotoSwipe dispose method.</p></li> <li><p>Add a custom event handler to OnHide or OnBeforeHide events that inherits from the default one but stops the hiding of the toolbar based on a setting you set.</p></li> </ol> <p>From what I can see </p> <ul> <li>the <code>captionAndToolbarHide</code> variable is false by default, and when set to true prevents the Toolbar from ever being created in the CreateComponents function.</li> <li>the <code>captionAndToolbarAutoHideDelay</code> variable does that it says but that only prevents the automatic hiding of the caption and toolbar , but not any other event calls to OnHide.</li> <li>the <code>preventHide</code> variable prevents the user from closing photoSwipe but doesn't necessarily guarantee that the toolbar won't be hidden.</li> </ul> <p>Further PhoneSwipe documentation is avaliable <a href="https://github.com/codecomputerlove/PhotoSwipe/blob/master/README.md" rel="noreferrer">here</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload