function getPopupStyles(zIndex, distanceTop, placement) {
|
var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
|
if ((placement === 'top' || placement === 'left') && distanceTop) {
|
zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;'
|
}
|
return zIndexStyle;
|
}
|
|
function onContentTouchMove (e) {
|
if (e.target.dataset.prevention) {
|
return false;
|
};
|
}
|
|
module.exports = {
|
getPopupStyles: getPopupStyles,
|
onContentTouchMove: onContentTouchMove
|
};
|