osrec / SuperSlide.js

A flexible, smooth, GPU accelerated sliding menu for your next PWA
https://osrec.co.uk/products/superslidejs
GNU General Public License v3.0
490 stars 21 forks source link

desktop fix left #10

Open navinSing opened 5 years ago

navinSing commented 5 years ago

Is there an option by which if it is desktop the menus will be fixed on the left (or the given position)

osrec commented 5 years ago

Not by default, however it should be fairly easy to implement:

  1. Determine if you're on desktop - use the user agent or width or something else (your choice!)
  2. If yes, then don't create the superslide object. If no, then create it.
navinSing commented 5 years ago

I wanted it be in library,, as window may get resized. Due to orientation.

On Wed 17 Apr, 2019, 9:27 AM OSREC Technologies, notifications@github.com wrote:

Not by default, however it should be fairly easy to implement:

  1. Determine if you're on desktop - use the user agent or width or something else (your choice!)
  2. If yes, then don't create the superslide object. If no, then create it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osrec/SuperSlide.js/issues/10#issuecomment-483927708, or mute the thread https://github.com/notifications/unsubscribe-auth/ACV8O3_1D28CWP5iVqXow_yGoHaO5S5Pks5vhpuQgaJpZM4cyyDK .

osrec commented 5 years ago

Putting this in the library may be an option - we'll think about adding it in the next release :)

navinSing commented 5 years ago

Thanks

On Thu 18 Apr, 2019, 10:41 AM OSREC Technologies, notifications@github.com wrote:

Putting this in the library may be an option - we'll think about adding it in the next release :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osrec/SuperSlide.js/issues/10#issuecomment-484358272, or mute the thread https://github.com/notifications/unsubscribe-auth/AASXYO7HNOYMIB737JYOVBDPQ77JJANCNFSM4HGLEDFA .