"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[67483],{3905:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>v});var n=r(67294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),u=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},l=function(e){var t=u(e.components);return n.createElement(c.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,p=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),f=u(r),v=o,h=f["".concat(c,".").concat(v)]||f[v]||s[v]||p;return r?n.createElement(h,a(a({ref:t},l),{},{components:r})):n.createElement(h,a({ref:t},l))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var p=r.length,a=new Array(p);a[0]=f;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i.mdxType="string"==typeof e?e:o,a[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>f,frontMatter:()=>a,metadata:()=>c,toc:()=>l});r(67294);var n=r(3905);function o(){return o=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const a={sidebar_label:"Viewport.hasTouch"},i="Viewport.hasTouch property",c={unversionedId:"api/puppeteer.viewport.hastouch",id:"api/puppeteer.viewport.hastouch",title:"Viewport.hasTouch property",description:"Specify if the viewport supports touch events.",source:"@site/../docs/api/puppeteer.viewport.hastouch.md",sourceDirName:"api",slug:"/api/puppeteer.viewport.hastouch",permalink:"/next/api/puppeteer.viewport.hastouch",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Viewport.hasTouch"},sidebar:"api",previous:{title:"Viewport.deviceScaleFactor",permalink:"/next/api/puppeteer.viewport.devicescalefactor"},next:{title:"Viewport.height",permalink:"/next/api/puppeteer.viewport.height"}},u={},l=[{value:"Signature:",id:"signature",level:4},{value:"Default value:",id:"default-value",level:4}],s={toc:l};function f(e){var{components:t}=e,r=p(e,["components"]);return(0,n.kt)("wrapper",o({},s,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",o({},{id:"viewporthastouch-property"}),"Viewport.hasTouch property"),(0,n.kt)("p",null,"Specify if the viewport supports touch events."),(0,n.kt)("h4",o({},{id:"signature"}),"Signature:"),(0,n.kt)("pre",null,(0,n.kt)("code",o({parentName:"pre"},{className:"language-typescript"}),"interface Viewport {\n hasTouch?: boolean;\n}\n")),(0,n.kt)("h4",o({},{id:"default-value"}),"Default value:"),(0,n.kt)("p",null,"false"))}f.isMDXComponent=!0}}]);