Djamil Legato
6919e723fa
Swipe gesture for Offcanvas is now optional and managebal from the Layout Manager ( fixes #559 )
2015-07-10 16:22:24 -07:00
Djamil Legato
b993c801a0
Fixed some cases where the height calculation of columns sublevels was wrong in offcanvas menu ( fixes #540 )
2015-07-08 10:29:26 -07:00
Djamil Legato
efa819c69f
ToTop: Implemented smoothscroll to top and fixed redirecting to different page ( fixes #500 )
2015-06-25 17:47:29 -07:00
Djamil Legato
165fd1f21b
Fixed menu issue when only 1 parent with no siblings present ( fixes #397 )
2015-06-01 12:34:21 -07:00
Djamil Legato
863f52de91
Added opening/closing classnames for offcanvas behavior ( #390 )
2015-05-29 17:44:14 -07:00
Djamil Legato
995609b156
Reworked offcanvas JS to use left/right instead of transforms
2015-05-28 16:43:24 -07:00
Kevin DuCommun
713923342a
Initial reimplementation of off canvas and page surround
2015-05-28 17:32:01 -05:00
Djamil Legato
65aa8a24ff
Collapse navigation when menu is moved in mobile container ( fixes #181 )
2015-05-20 09:52:44 -07:00
Djamil Legato
7628c3da02
JS errors when mobileContainer not present ( fixes #282 )
2015-05-17 23:07:56 -07:00
Djamil Legato
118febc55a
Restoring menu items custom width when they get moved back into desktop from offcanvas ( fixes #228 , fixes #223 )
2015-05-15 12:01:44 -07:00
Djamil Legato
51f860031b
Added Menu Particle option to target the desired menu to go in offcanvas ( fixes #220 )
2015-05-10 17:35:55 -07:00
Djamil Legato
8e1ecbc9c8
Fixed several IE issues
2015-05-07 12:36:12 -07:00
Djamil Legato
c33cb1f520
Remove extra padding / margin if the mobile container is empty ( fixes #190 )
2015-05-07 11:54:48 -07:00
Djamil Legato
481b1068a6
Do not export dollar on frontend
2015-05-02 08:51:26 -07:00
Djamil Legato
d9be78e982
Do not detach Mutation event if the mobileContainer doesn't exist, there might be other particles rendered ( fixes #172 )
2015-05-02 08:47:25 -07:00
Djamil Legato
d2f33e79e0
More menu fixes. Reset states when switching between offcanvas and desktop. Do not fixHeights in toplevel when in desktop mode and touch screen.
2015-04-22 15:51:45 -07:00
Djamil Legato
dc408a3d19
Added more checks to prevent JS from failing. Fixed potential issue with dropdowns layouts not being direct children of menu item
2015-04-22 15:18:24 -07:00
Djamil Legato
2c22bdbf4d
Fix heights of menu sublevels in offcanvas to ensure they parents don't bleed through and that the particles that follow don't get overlapped ( fixes #100 )
2015-04-21 16:29:50 -07:00
Djamil Legato
cb5a092469
Debouncing the toggles check to fix some odd behaviors in Firefox ( #100 )
2015-04-21 15:03:34 -07:00
Djamil Legato
c83f6b6a91
Tweaked swipe tolerance to take into account the Y axis while scrolling. This should make it harder to trigger the offcanvas open/close while scrolling and expects more of a horizontal swipe with little tolerance on the Y axis.
...
Tweaked swipe tolerance to take into account the Y axis. This should make the trigger smarter about understanding if the intention is to scroll or open the offcanvas. It expects more of an horizontal swipe with little tolerance on the Y axis , else it scrolls.
2015-04-19 19:09:10 -07:00
Djamil Legato
3e042de86d
Reduce tolerance for opening/closing offcanvas to 1/3 instead of 1/2
2015-04-19 16:26:57 -07:00
Djamil Legato
2e99628a2a
Fixed swipe issue while scrolling and triggering the offcanvas opening when not intended
2015-04-18 13:48:13 -07:00
Djamil Legato
5d7487081e
Do not try to animate all columns if it's desktop megamenu
2015-04-17 15:24:24 -07:00
Djamil Legato
66314f7c00
Do no try to fix heights on top levels in megamenu
2015-04-17 14:43:30 -07:00
Djamil Legato
1c424653ac
Only fix heights in desktop megamenu
2015-04-17 14:34:16 -07:00
Djamil Legato
7db3c27335
Fixed mobile menu navigation when there are multiple columns
2015-04-17 13:56:29 -07:00
Djamil Legato
2eb6f07d53
Changed matchMedia to compensate with unit tolerance so it doesn't clash with other breakpoints
2015-04-17 13:12:03 -07:00
Djamil Legato
dce8a27a41
Returning capture handler, useful for detaching events
2015-04-17 13:11:15 -07:00
Djamil Legato
fc132f1eef
1. Detaching all events, including swipe, when the offcanvas is not meant to be opened. 2. Ensuring to always attach the mutation events when detaching the rest. 3. Code reorganization and cleanup
2015-04-17 11:02:04 -07:00
Djamil Legato
f567f128d0
Optimization: detaching mutation event if the menu mobile is not detected in the page
2015-04-17 10:25:40 -07:00
Djamil Legato
8e1e1e5983
Implemented menu overlay for touch devices to close the entire menu. Cleanup
2015-04-16 23:29:46 -07:00
Djamil Legato
2f6cb1de46
Yikes, ugly typo
2015-04-16 22:10:00 -07:00
Djamil Legato
0077a83169
Auto adjust heights in slideouts
2015-04-16 21:48:59 -07:00
Djamil Legato
4bef6383b7
If the mutator target is not the mobile container it's not worth continuing
2015-04-16 21:47:29 -07:00
Djamil Legato
d61b48fb84
Ensuring to close all sub levels when closing a parent
2015-04-16 19:36:09 -07:00
Djamil Legato
de203472ba
Added mutators to hide any offcanvas toggle when not needed
2015-04-16 18:29:04 -07:00
Djamil Legato
3335e2af41
Allowing clicking through sublevels if it's not the main navigation (ie, offcanvas)
2015-04-16 16:54:19 -07:00
Djamil Legato
cdb08fe059
Leftover console.log
2015-04-16 16:06:22 -07:00
Djamil Legato
4607053e68
Fullwidth menu slideouts
2015-04-16 15:27:14 -07:00
Djamil Legato
cd9bc9037b
Temporary exposing $ for development
2015-04-16 15:27:03 -07:00
Djamil Legato
50afd6a8e0
Only trigger mouse events if the menu allows it
2015-04-15 18:14:02 -07:00
Djamil Legato
15c1020b85
Implemented matchMedia to move the menu to and from the offcanvas based on the Large Mobile breakpoint
2015-04-15 17:26:35 -07:00
Djamil Legato
bf9301506d
Ensuring mouse over/out events only trigger g-standard menu types
2015-04-15 17:23:32 -07:00
Djamil Legato
7ae0eda6a4
Stopping propagation of the event if it's a parent separator
2015-04-15 15:47:02 -07:00
Djamil Legato
d9d70f575f
Using top fix for dropdowns only if device doesn't have touch events
2015-04-15 15:43:30 -07:00
Djamil Legato
b9fcd29e0b
Implemented touch actions for opening / closing dropdowns. Compatibility with touch screen devices with mouse support
2015-04-15 15:25:33 -07:00
Djamil Legato
a290704db6
Adding g-menu-hastouch to menu containers when touch device is detected
2015-04-15 14:07:13 -07:00
Djamil Legato
2d0d20ca40
Inizial JS implementation for the new revamped menu ( #58 )
2015-04-15 13:32:23 -07:00
Djamil Legato
ae70da864f
Oops, didn't mean to remove the touch events check for delegation
2015-04-13 13:36:06 -07:00
Djamil Legato
30bf31d7cd
1. Tolerance of offcanvas is now a customizable callback and set to half the size of the offcanvas by default. 2. Fixed different issues to handle both left / right sides.
2015-04-13 13:33:27 -07:00