| | |
| | | /******/ |
| | | /******/ |
| | | /******/ // Load entry module and return exports |
| | | /******/ return __webpack_require__(__webpack_require__.s = 77); |
| | | /******/ return __webpack_require__(__webpack_require__.s = 76); |
| | | /******/ }) |
| | | /************************************************************************/ |
| | | /******/ ({ |
| | |
| | | bindScrollEvent: function bindScrollEvent() { |
| | | var _this2 = this; |
| | | |
| | | var bindFuntion = function bindFuntion(type) { |
| | | var bindFunction = function bindFunction(type) { |
| | | _this2.$refs[type].wrap.onscroll = function (e) { |
| | | // TODO: scroll is emitted when set scrollTop programatically |
| | | // should find better solutions in the future! |
| | | _this2.handleScroll(type, e); |
| | | }; |
| | | }; |
| | | bindFuntion('hours'); |
| | | bindFuntion('minutes'); |
| | | bindFuntion('seconds'); |
| | | bindFunction('hours'); |
| | | bindFunction('minutes'); |
| | | bindFunction('seconds'); |
| | | }, |
| | | handleScroll: function handleScroll(type) { |
| | | var value = Math.min(Math.round((this.$refs[type].wrap.scrollTop - (this.scrollBarHeight(type) * 0.5 - 10) / this.typeItemHeight(type) + 3) / this.typeItemHeight(type)), type === 'hours' ? 23 : 59); |
| | |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 77: |
| | | /***/ 76: |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |