This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Thanks to Hokascha fot the `{passive: false}` trick. | |
| // https://stackoverflow.com/a/46423584 | |
| let touchStart = {x: 0, y: 0} | |
| let touchOffset = {x: 0, y: 0} | |
| let beforeTouchScrollY = 0 | |
| const setTouchstartCoords = e => { | |
| touchStart = { | |
| x: e.touches[0].pageX, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Inchoo_Alternate_Model_Observer | |
| { | |
| public function alternateLinks() | |
| { | |
| $headBlock = Mage::app()->getLayout()->getBlock('head'); | |
| $stores = Mage::app()->getStores(); | |
| $product = Mage::registry('current_product'); | |
| $category = Mage::registry('current_category'); |