mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
https://github.com/go-gitea/gitea/pull/24098#issuecomment-1514010690 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -68,7 +68,7 @@ export function initGlobalButtonClickOnEnter() {
 | 
			
		||||
export function initGlobalCommon() {
 | 
			
		||||
  // Undo Safari emoji glitch fix at high enough zoom levels
 | 
			
		||||
  if (navigator.userAgent.match('Safari')) {
 | 
			
		||||
    $(window).resize(() => {
 | 
			
		||||
    $(window).on('resize', () => {
 | 
			
		||||
      const px = mqBinarySearch('width', 0, 4096, 1, 'px');
 | 
			
		||||
      const em = mqBinarySearch('width', 0, 1024, 0.01, 'em');
 | 
			
		||||
      if (em * 16 * 1.25 - px <= -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user