Disable ContextMenu
parent
7edf171664
commit
818aba94a0
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "emoji-mart-lazyload",
|
"name": "emoji-mart-lazyload",
|
||||||
"version": "3.0.1h",
|
"version": "3.0.1i",
|
||||||
"description": "Customizable Slack-like emoji picker for React",
|
"description": "Customizable Slack-like emoji picker for React",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist-es/index.js",
|
"module": "dist-es/index.js",
|
||||||
|
|
|
@ -34,11 +34,11 @@ export default class Category extends React.Component {
|
||||||
this.memoizeSize()
|
this.memoizeSize()
|
||||||
|
|
||||||
this.lazyloadImages = []
|
this.lazyloadImages = []
|
||||||
this.lazyload()
|
this.addLazyloadObserver()
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.lazyload()
|
this.addLazyloadObserver()
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
@ -108,7 +108,7 @@ export default class Category extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lazyload() {
|
addLazyloadObserver() {
|
||||||
this.removeLazyloadObserver()
|
this.removeLazyloadObserver()
|
||||||
this.lazyloadImages = this.container.querySelectorAll(".lazy");
|
this.lazyloadImages = this.container.querySelectorAll(".lazy");
|
||||||
|
|
||||||
|
@ -123,6 +123,10 @@ export default class Category extends React.Component {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleOnContextMenu(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
handleScroll(scrollTop) {
|
handleScroll(scrollTop) {
|
||||||
var margin = scrollTop - this.top
|
var margin = scrollTop - this.top
|
||||||
margin = margin < this.minMargin ? this.minMargin : margin
|
margin = margin < this.minMargin ? this.minMargin : margin
|
||||||
|
|
|
@ -209,6 +209,7 @@ const NimbleEmoji = (props) => {
|
||||||
onClick={(e) => _handleClick(e, props)}
|
onClick={(e) => _handleClick(e, props)}
|
||||||
onMouseEnter={(e) => _handleOver(e, props)}
|
onMouseEnter={(e) => _handleOver(e, props)}
|
||||||
onMouseLeave={(e) => _handleLeave(e, props)}
|
onMouseLeave={(e) => _handleLeave(e, props)}
|
||||||
|
onContextMenu={(e) => e.preventDefault()}
|
||||||
aria-label={label}
|
aria-label={label}
|
||||||
title={title}
|
title={title}
|
||||||
className={className}
|
className={className}
|
||||||
|
|
Loading…
Reference in New Issue