Commit Graph
52 Commits
Author SHA1 Message Date
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
Djamil Legato 30b15d5c1b Coordinating overlay opacity while swiping. Code optimizations 2015-04-12 20:04:32 -07:00
Djamil Legato 5edddd83fc Fixed swipe when offcanvas is placed on the right handside 2015-04-12 18:39:02 -07:00
Djamil Legato d92a211eef Implemented swipe for touch devices to open / close the offcanvas. Moved .g-offcanvas-open from body to html 2015-04-11 23:08:53 -07:00
Djamil Legato f06c4e0776 Optimizations and Touch support 2015-04-10 23:27:23 -07:00
Djamil Legato 2721cda04e Initial offcanvas js logic. 2015-04-10 21:46:03 -07:00
Djamil Legato 937ffa025e Moved the whole proj to gulp instead of grunt 2015-04-10 11:50:28 -07:00
Djamil Legato 1143988f8a Temporary solution for developing frontend menu. 2015-04-09 14:13:35 -07:00
Djamil Legato 5ac9470ae4 Merge branch 'develop' into feature/menu-click-hover
# Conflicts:
#	assets/common/application/menu/index.js
#	assets/common/js/main.js
#	platforms/common/css-compiled/admin.css
#	platforms/common/js/main.js
2015-04-05 20:28:34 -07:00
Djamil Legato c6ec4d05c9 Disabled compressed JS for menu causing issues in Safari 2015-04-03 09:47:38 -07:00
Djamil Legato 51483af93a Initial revamp of Menu system. Added a DetectMouse method that will be used later on for properly toggle mouseover events/ touch events 2015-04-01 11:11:32 -07:00
Djamil Legato ef3583c859 #30, menu could potentially show empty in mobile view 2015-03-31 14:41:34 -07:00
Djamil Legato 157875c725 Updated menu package.json to use custom elements module 2015-03-30 18:17:44 -07:00