I'm looking to create a circle which contains google maps with hidden overflow impossible to drag
I thought that clip-path property is what I need, but it appear to be that it you can still handle the map outside clipped shape. Same as border-radius: 50%
and overflow: hidden
Are there any workaround about this problem?
Please check this short 10s video for better understanding of what I'm trying to achieve http://take.ms/mhvqA
I'm not trying to disable drag completely. It should work only inside the circle. therefore pointer-events: none
will not help
Live demo: http://bergman.surge.sh/contacts.html
Update: this works well in Chrome, Firefox, etc. But Safari does not
.contact-map
position: absolute
z-index: 9
top: 0
right: 0
size: 910px
transform: translate3d(8.5%,-45%,0)
border-radius: 50%
overflow: hidden
pointer-events: none
> div
width: 100%
height: 102%
pointer-events: all
clip-path: circle(50% at 50% 50%)
-webkit-clip-path: circle(50% at 50% 50%)